ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: war task question
Date Wed, 05 Feb 2003 07:18:08 GMT
On Tue, 4 Feb 2003, Yoav Shapira <Yoav.Shapira@mpi.com> wrote:

> 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.

  <lib dir="lib"/>
  <lib dir="build"/>
  <fileset dir=".">
    <exclude name="lib/**"/>
    <exclude name="build/**"/>
  </fileset>

and exclude the "except one" in the appropriate lib element.

Stefan

Mime
View raw message