** 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:[EMAIL PROTECTED] >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: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
