ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lars Ræder Clausen" <>
Subject Re: Enforce order in copying so that my overiding works correctly
Date Thu, 24 Jul 2008 07:35:58 GMT
On Wed, Jul 23, 2008 at 7:43 PM, Raja Nagendra Kumar
<> wrote:
> Hi I am looking for files to copied to same directory from different
> locations as specified by fileset and its includes as below.
> <copy todir="${build.wtk.res}" overwrite="true"
>                  includeEmptyDirs="false" flatten="true">
>                <fileset dir="${resources}">
>                    <exclude name="**/Thumbs.db"/>
>                    <include name="jad/app.jad"/>
>                     <include name="images/deviceid/**/N73/*.jad/>
>                </fileset>
>            </copy>
> However, I wish includes would be applied in the order they are represented
> in the fileset so that my overide would give the desired file.

A FileSet does not have a well-defined order, it's a set.  A FileList
does have an order, but I'm not sure if you can use that in a copy

Speaking of FileSet, is it just me who's having trouble doing a set
union on FileSets?  I'd have expected something like

<fileset id="set1" dir="/tmp"><include name="aFile"></fileset>
<fileset id="set2" dir="/etc"><include name="passwd"></fileset>
<fileset id="set3">
  <include refid="set1"/>
  <include refid="set2"/>

to give me a FileSet with two files in it, but it's not even legal,
and I have yet to find a legal way to do it.  Is it just that the
internal representation of FileSet is not compatible with that kind of


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message