Giter Site home page Giter Site logo

robinst / jar-manifest-formatter Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 8 KB

Pretty-prints JAR manifest files (used by OSGi)

Home Page: https://robinst.github.io/jar-manifest-formatter/

License: MIT License

HTML 29.10% CSS 3.73% JavaScript 67.16%

jar-manifest-formatter's Introduction

jar-manifest-formatter

MANIFEST.MF files in jars (used by OSGi) can sometimes be a bit tricky to read because the format hard-wraps long lines in the middle of words.

So paste the contents here and enjoy the formatted/sorted output:

https://robinst.github.io/jar-manifest-formatter/

Pull requests welcome :).

Build status

License

Copyright (c) 2015-2016 Robin Stocker

MIT licensed

jar-manifest-formatter's People

Contributors

robinst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

c-robin xfournet

jar-manifest-formatter's Issues

[feature request] list dependency one per line

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

Unlimited width ?

There is quite a beast. Can you make form wider or unlimited (screen width)

osgi1

[feature request] list Bundle-ClassPath and Embedded-Artifacts one per line

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"

Doesn't work anymore with google-chrome

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

Tiny issue - should be 1 space

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.