ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: Reuse a fileset
Date Mon, 26 May 2003 18:24:48 GMT
I am not totally sure about ant 1.4.1, but this could work
  <fileset dir="${lib.dir}/ext/lib" includes="crimson.jar,log4j*.jar"
id="fileset1"/>
   <fileset dir="${lib.dir}/int/lib" includes="common-utils.jar"
id="filesetcommons-utils.jar"/>
  <path id="classpathid.jaronly">
     <fileset refid="fileset1"/>
     <fileset refid="filesetcommons-utils.jar"/>
 </path>
 <copy todir="somedir">
      <fileset refid="fileset1"/>
      <fileset refid="filesetcommonts-utils.jar"/>
 </copy>
You can nest several filesets in the copy task if you use the todir
attribute in ant1.6
----- Original Message -----
From: "Florent Zara" <fzara.ml@free.fr>
To: <user@ant.apache.org>
Sent: Monday, May 26, 2003 6:09 PM
Subject: Reuse a fileset


> Hi,
>
> I'm using Ant 1.4.1.
> I've define a path element which is resued several times, like in other
> path-like structures or tasks parameters.
> <path id="classpathid.jaronly">
>   <fileset dir="${lib.dir}/ext/lib" includes="crimson.jar,log4j*.jar" />
>   <fileset dir="${lib.dir}/int/lib" includes="common-utils.jar" />
> </path>
>
> I would like to use these filesets in a copy task, that does not support
> nested path elements (which is normal).
>
> So, How to define a bunch of fileset and reuse them in either pathlike
> structure or a copy task ?
>
> Thank you.
> Florent
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



Mime
View raw message