You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Divakar <di...@andiamo.com> on 2002/04/18 15:10:40 UTC
problem in copying only files to dest dir..
Hi,
Can somebody point me to right place to get info on 'copying only files
from a directory recursively to a dest directory'
this is what I am trying
<copy todir="${publish}">
<fileset dir="." includes="**/README*.html"/>
</copy>
This creates directory structure and copy the README*.html files. What I
want is all README*.html to be in ${publish} directory only.
thanks for any help
Divakar
Re: problem in copying only files to dest dir..
Posted by Divakar <di...@andiamo.com>.
Great ..!! It worked ..!!
Thanks a lot for all the help
divakar
Diane Holt wrote:
>--- Rob van Oostrum <rv...@xs4all.nl> wrote:
>
>>use <mapper type="flatten" />
>>
>
>Or just include the 'flatten' attribute:
> <copy todir="${destdir}" flatten="true">
> ...
> </copy>
>
>Diane
>
>=====
>(holtdl@yahoo.com)
>
>
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>http://taxes.yahoo.com/
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
Re: problem in copying only files to dest dir..
Posted by Diane Holt <ho...@yahoo.com>.
--- Rob van Oostrum <rv...@xs4all.nl> wrote:
> use <mapper type="flatten" />
Or just include the 'flatten' attribute:
<copy todir="${destdir}" flatten="true">
...
</copy>
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: problem in copying only files to dest dir..
Posted by Rob van Oostrum <rv...@xs4all.nl>.
use <mapper type="flatten" />
> Hi,
>
> Can somebody point me to right place to get info on 'copying only files
> from a directory recursively to a dest directory'
>
> this is what I am trying
> <copy todir="${publish}">
> <fileset dir="." includes="**/README*.html"/>
> </copy>
>
> This creates directory structure and copy the README*.html files. What
> I want is all README*.html to be in ${publish} directory only.
>
> thanks for any help
> Divakar
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>