Ant Build Failing -- Need a way to pick jar file during run time.
Prachi Garg
Greenhorn
Joined: Dec 29, 2011
Posts: 2
posted
0
Hi Everyone, I am new to ANT. I am looking for some inputs on writing build.xml file, I have written one, It works fine if I include one of my jar file in ../WEB-INF/lib folder.
I dont want this jar file to be packaged while creating WAR/EAR files and This jar file is required during run time and want to exclude this jar file from ../WEB-INF/lib folder and still build successfully..
The copy statement in lines 72-74, try adding an excludes value to not copy the JAR file you don't want. In general, that is how you prevent Ant from copying files you don't want.
If I know exactly what the JAR file was named, and where it is located, I could be more specific. Posting the project directory and file structure would help.