I am new to Ant. Following is the folder structure for my application.
- src : source code
- lib : jars
- util : build.xml (ant build file)
- output : This will have a jar file generated from source
The user should be able to copy this jar file in the output folder to anywhere and when extracted it will have
- lib folder: contains all the libs needed
- build.xml : ant build file to run
The user should be able to run this build.xml as "ant -f build.xml run"
The problem is, in the code structure the build.xml is under output folder, so when I write the build.xml, the lib folder path is set to ../lib/ But when the build.xml is run from the extracted folder, the build.xml is at root level and ../lib will not work since the relative path for lib would be "./lib/"
Help appreciated!
Thanks