ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: help w/ jar files
Date Fri, 27 Aug 2004 16:15:30 GMT
Hi,
I think you need two nested filesets in your invocation of
the jar task.

 <jar destfile = "${proj.dist}/${proj.name}.war"
     basedir = "${proj.temp}"
      <fileset dir=".">
         <include name="com/**"/>
         <exclude name="com/comp/management/ejb/**"/>
      </fileset> 
      <fileset dir="web">
         <exclude name="META-INF/**"/>
      </fileset> 
 </jar>

Cheers,
Antoine
> In case this gets posted a few times ... apologies.
> 
> How do I include the files under the 'web' directory
> as shown in the 'includes' attribute, yet not include
> the 'web' directory itself? In otherwords, I want the
> files under 'web' to be in the top level of the jar
> file just as 'com/**' does. 
> 
> 
> ---
> The dir structure ${proj.temp} looks like ...
> 
> |- web/
> |   |- *.html, *.vm, etc...
> |   |- META-INF/ (for web-app)
> |   |- WEB-INF/
> |
> |- com/
> |   |- *.class
> |   
> |- META-INF/ (for ejb's)
> 
> 
> Any help much appreciated.
> Will


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message