I have an eclipse Application project.
This project references a Java project (Properties -> Project References).
The referenced java project has further jar files on the java build path (Properties -> Java Build Path -> Libraries, pointing to a jar file held in another application in the workspace.)
I need to be able to specify which of the jar files on the build path to include in the final build of the application, in the generated .bar file; and more importantly, which to exclude.
This is because some of the .jar files already exist as shared classes on the server I’m deploying to, and so I don’t want to also include the jar files inside the .bar file and override the version that’s on the server already.
I am generating the bar file by creating a bar file in Eclipse, then opening it and selecting the application and clicking “Build” in the UI.
I know I can manually open the bar file and delete the .jar from inside afterwards, but I want to know if there’s a way to tell Eclipse to do what I want at build time instead.