On Wed, Jul 23, 2008 at 7:43 PM, Raja Nagendra Kumar
<[EMAIL PROTECTED]> 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
task.
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"/>
</fileset>
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
operation?
-Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]