Reputation: 3407
I am trying to build a Runnable jar file using the Eclipse>Export>Runnable Jar File option. Things are fine except that it is also exporting my test classes I am only selecting classes from my src/java folder and not anything from src/test folder
One way out is to add the MANIFEST file later after building as a normal jar. But would like to know if there is a way to prevent tets classes from being exported
Upvotes: 1
Views: 758
Reputation: 6637
In the Java Build Path
Source
menu add the main and test sources separately. Now in the Deployment Assembly
menu remove the test sources.
Is that what you're looking for?
Upvotes: 2