I am trying to bundle all libraries to one jar for my JavaFX application using ANT. I found the following Creating a bundle jar with ant but could not get it to work. Adding the library *.jar files can be done in <fx:jar>
by adding <fileset>
:
<fileset dir="build" includes="libs/*.jar"></fileset>
The build
directory contains:
build
|-- classes (compiled classes)
|-- libs (external libraries)
|-- src (sources)
The generated jar now contains the libs
directory with all the libraries.
How can I tell the generated jar that is should look into the libs
directory inside the jar and not outside it?
Thanks!