Output file name

40 views
Skip to first unread message

lo6566

unread,
Dec 20, 2012, 8:12:37 AM12/20/12
to bndtool...@googlegroups.com
So far I was using bnd 0.3xx, doing it the old style, clicking on "Make bundle" etc. I thought it might be time to upgrade to the latest version, so I downloaded bndtools from the Eclipse Marketplace. However I am struck a little bit by the fact that the new bndtools is not really downwards compatible. I used heavily the "-output" parameter, because in a project I am working in, the filename has to follow a certain pattern. Now I find that the new bndtools version uses the Bundle-SymbolicName for the file name, and if it does not exist the Bundle-Name. Due to the guidelines in the project, I cannot alter Bundle-SymbolicName and Bundle-Name.
How can I change the output file name?

Neil Bartlett

unread,
Dec 20, 2012, 8:20:51 AM12/20/12
to bndtool...@googlegroups.com
The output filename in the project is used for Bndtools' internal build system, and allows us to find dependencies quickly.

Are you really deploying into your production application directly from the Bndtools "generated" folders? If you have a build system with a copy step then surely you can incorporate a file rename operation at that point?

Neil

lo6566

unread,
Dec 20, 2012, 9:04:29 AM12/20/12
to bndtool...@googlegroups.com
The deployment step is not in my responsibility. It is rather done directly from the SVN. I have no influence on it, as it is part of a larger project. I need to deliver the .jar as is, with the final file name. This might also be driven by the fact that most other people in the project are using the old .bnd. My I suggest that from a software engineering point of view, relying on dependencies based on file name seems kind of problematic anyway. Just think about how different file systems handle capital letters. Why not using the Bundle-SymbolicName in the manifest file? Most people in this project (+20) refuse to update to the new bndtools because it is not downwards compatible, sharing the old .3xx version around by e-mail.

lo6566

unread,
Dec 20, 2012, 10:26:36 AM12/20/12
to bndtool...@googlegroups.com
Ok, I found a workaround following this tutorial: http://stackoverflow.com/questions/3360596/eclipse-auto-build-after-save
I now have an ant script that automatically copies the generated file to its final file name.
Reply all
Reply to author
Forward
0 new messages