ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohit Anchlia" <mohitanch...@gmail.com>
Subject Re: copy directory
Date Thu, 16 Oct 2008 15:54:48 GMT
Thanks.

So if I say my/dir/** then "dir" is recursively copied to the
destination and when I say my/dir/* then only files under dir are
copied to the destination but not the "dir" itself.

I'll try it out.

On Wed, Oct 15, 2008 at 10:39 PM,  <Jan.Materne@rzf.fin-nrw.de> wrote:
> ** 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
>
>

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


Mime
View raw message