-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bndlib] Provide a -nice
option
#6321
Comments
|
bnd cli already has print command (via JarPrinter.java which is also used in the print view of the JarViewer), but after reading your sentence again, I don't think it respects the 72 character limit. But we could try to integrate it. |
@chrisrueger the Jar printer prints something completely different that is not usable as a Manifest file as far as I see. The option in maven-bunlde plugin produces something that is used as the manifest actually located inside the jar itself. |
I updated my comment. we could try to integrate it. and hook in https://github.com/bndtools/bnd/blob/master/biz.aQute.bndlib/src/aQute/bnd/osgi/Builder.java#L366 to read a new "-nice" / "prettyprintManifest" instruction
and pass it along. Could you contribute the addition to ManifestUtil so that it can do what Felix ManifestWriter does? I can help out with the rest. I just added a new instruction in another PR so I have touched some relevant places. |
@pkriens if you don't have any objections in general, you can assign this to me. |
Why not make it the standard? No option? They are functionally the same manifests and it only adds a few more characters. |
Can I then have an "ugly" option? sorry couldn't resist 🤣 |
Yeah, that would work :-) The only problem might be test case ... We are actually looking at the manifest in some places I think. |
There were indeed two testcases in bnd which failed after I added the nice-writer from felix. |
Felix Bundle plugin has a
niceManifest
option that formats ManifestIt would be good if bnd offers a
-nice
option as well, as manifest are sometimes inspected on raw text editors as well, used in debug outputs and so on.If bndlib offer the code, felix can even migrate to that code to reduce duplication of such efforts.
The text was updated successfully, but these errors were encountered: