ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: copy directory
Date Thu, 16 Oct 2008 05:39:33 GMT
** is a deep copy. All nested directories are copied too.
*  copies all files in that directory.
After a trailing slash is automatically a ** added.

my/dir/*.txt  --> copies my/dir/a.txt, my/dir/b.txt, ...
my/**/*.txt   --> copies all text files somewhere under 'my'
my/**         --> copies all files under 'my'
my/           --> same as my/**

http://ant.apache.org/manual/CoreTypes/patternset.html


Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: Mohit Anchlia [mailto:mohitanchlia@gmail.com] 
>Gesendet: Mittwoch, 15. Oktober 2008 18:51
>An: Ant Users List
>Betreff: copy directory
>
>Does below copy the files along with directory?
>
>       <copy todir="${dir}">
>            <fileset dir="${tools.dir}/install/**">
>            <fileset dir="${tools.dir}/st/*">
>
>What's the difference between ** and just *? Would first one copy
>along with directory and the second one only individual files?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message