I use Ant to create some Java projects.
In some cases, I have a lib/ directory that contains external dependencies, in the form in JAR files.
During the build, I create a merged jar that contains the project code, along with the dependencies, adding a zipfileset to the jar package file for each of the jars in the lib/ directory.
The problem is that every time I add a jar or change the names, I need to remember to update the build.xml file, since I could not find a way to add these zipfilesets automatically, it will include all banks in a specific template (for example, lib/*.jar ).
Is there a better way to do this?
I thought about writing my own Ant task for this or using the Groovy Ant API for this programmatically, but I wondered if there was a way to do this with the "vanilla" ant.
java jar ant
abyx Nov 30 '09 at 19:16 2009-11-30 19:16
source share