ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Trouble with <copy> and <DirSet>
Date Fri, 10 Sep 2010 04:13:36 GMT
On 2010-09-09, Aaron Mackley wrote:

> I have a single file that needs to be copied into a random folder
> name.  I know the folder path except for the last folder, which will
> be called xxxxxxxx.default, where xxxxxxxx is a random set of
> characters.
> 
> This may be easier than I am trying to make it, but I am trying to use
> a DirSet within a Copy, like this:

> <dirset dir="${firefox.dir}">
>   <include name="**/*.default"/>
> </dirset>

This would match any directory that end in .default - but not the files
contained within them.

<fileset dir="${firefox.dir}">
   <include name="**/*.default/**"/>
</fileset>

is probably what you want.

Stefan

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


Mime
View raw message