ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject war task question
Date Tue, 04 Feb 2003 22:42:10 GMT
Hi,
I have the following source organization I'd like to get into a war
file:

/lib/jar1.jar
/lib/jar2.jar
/lib/jar3.jar
/build/myjar1.jar
/build/myjar2.jar
/images/image1.gif
/images/image2.gif
/config/web.xml
/config/otherConfiguration.prop
/html/file1.html
/html/file2.html

I need all the jars in the lib directory except one, and the jars in the
build directory, to go into the /WEB-INF/lib directory of the war file.

The other files (html, images, config/otherConfiguration.prop) should
just go under the war root directory (not under WEB-INF).

I'm using Ant 1.5.1.

My war task skeleton looks like:

<target name="createWarFile">
  <war destfile="myWarFile.war" webxml="/config/web.xml">
  </war>
</target>

Can someone please help me fill in the rest? ;)  

Thanks,

Yoav Shapira
Millennium ChemInformatics



Mime
View raw message