robinst / jar-manifest-formatter Goto Github PK
View Code? Open in Web Editor NEWPretty-prints JAR manifest files (used by OSGi)
Home Page: https://robinst.github.io/jar-manifest-formatter/
License: MIT License
Pretty-prints JAR manifest files (used by OSGi)
Home Page: https://robinst.github.io/jar-manifest-formatter/
License: MIT License
list dependency one per line, e.g.
Require-Bundle: bee.base,bee.besta.common,bee.base,bee.besta.common,bee.base,bee.besta.common,bee.base,bee.besta.common,bee.base,bee.besta.common
to
Require-Bundle:
bee.base,
bee.besta.common,
bee.base,bee.besta.common,
bee.base,
bee.besta.common,
bee.base
Thank you for #1 It works! ๐
There is tiny issue though: when source also has space tab, result may have 2
Solution: never use more than 1 space
e.g. try this example
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Workspace Dock Badge Plug-in for Mac OS X
Bundle-SymbolicName: name.njbartlett.eclipse.macbadge;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Import-Package: org.eclipse.core.resources,
org.eclipse.core.runtime;version="3.4.0",
org.eclipse.core.runtime.preferences;version="3.3.0", org.eclipse.jface.preference,
org.eclipse.swt.internal.cocoa, org.eclipse.ui,org.eclipse.ui.preferences, org.eclipse.ui.progress,
org.eclipse.core.runtime.jobs
Require-Bundle: org.eclipse.swt;bundle-version="3.7.0"
list Bundle-ClassPath and Embedded-Artifacts one per line
example source
Bundle-ClassPath: .,lib/javassist-3.18.0-GA.jar,lib/slf4j-log4j12-1.6.4.jar,lib/slf4j-api-1.6.4.jar,lib/log4j-1.2.16.jar,lib/xstream-1.4.2.jar,lib/xmlpull-1.1.3.1.jar,lib/xpp3_min-1.1.4c.jar,lib/sysout-over-slf4j-1.0.2.jar,lib/jcl-over-slf4j-1.6.4.jar
Bundle-ManifestVersion: 2
Bundle-Version: 4.5.0
Created-By: Apache Maven Bundle Plugin
Embed-Dependency: *;scope=compile|runtime
Embed-Directory: lib
Embed-Transitive: true
Embedded-Artifacts: lib/javassist-3.18.0-GA.jar;g="org.javassist";a="javassist";v="3.18.0-GA",lib/slf4j-log4j12-1.6.4.jar;g="org.slf4j";a="slf4j-log4j12";v="1.6.4",lib/slf4j-api-1.6.4.jar;g="org.slf4j";a="slf4j-api";v="1.6.4",lib/log4j-1.2.16.jar;g="log4j";a="log4j";v="1.2.16",lib/xstream-1.4.2.jar;g="com.thoughtworks.xstream";a="xstream";v="1.4.2",lib/xmlpull-1.1.3.1.jar;g="xmlpull";a="xmlpull";v="1.1.3.1",lib/xpp3_min-1.1.4c.jar;g="xpp3";a="xpp3_min";v="1.1.4c",lib/sysout-over-slf4j-1.0.2.jar;g="uk.org.lidalia";a="sysout-over-slf4j";v="1.0.2",lib/jcl-over-slf4j-1.6.4.jar;g="org.slf4j";a="jcl-over-slf4j";v="1.6.4"
When copy-paste an OSGi manifest content in firefox it works as well as before but in chrome, there's an error (in IE as well):
script.js:36 Uncaught TypeError: undefined is not a function
where line 36 is
header.value.match(/([^,"]+|"[^"]*")+\s*/g).map(String.trim);
And indeed when we execute String.trim
in chrome we got:
String.trim is not a function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.