In my src folder there is another folder called data which contains files data1.txt and data2.txt. The application loads a graph from these files in the initialization, so I want to include these files in my final jar. I use Ant to produce the jar file.
In my src folder there is another folder called data which contains files data1.txt
Share
Example from http://ant.apache.org/manual/Tasks/jar.html :
So basically you would want to include the data-files in the same way as “resources” are included above.
From the documentation of the
<jar>task: