You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Rajesh Kumar <ra...@gmail.com> on 2010/08/25 11:18:06 UTC
help in copy files from list
Hi,
I have one file called list.txt where i have mentioned all the files which
need to be copied from specific directry.
can you please help me with the right copy task syntax which read the files
name from list.txt and copy to destination directory???
--
===========================
Rajesh Kumar
Configuration, Build and Release Engineer
Blog: http://www.scmGalaxy.com
Email: rajesh@scmGalaxy.com
AW: help in copy files from list
Posted by Ja...@rzf.fin-nrw.de.
Depending on the syntax of your listing
<copy todir=""><fileset dir="" includelist="filelist.txt"/></copy>
could work.
Jan
>-----Ursprüngliche Nachricht-----
>Von: Ludwig, Michael [mailto:Michael.Ludwig@delphi-mb.de]
>Gesendet: Donnerstag, 26. August 2010 10:13
>An: Ant Users List
>Betreff: RE: help in copy files from list
>
>> -----Original Message-----
>> From: Rajesh Kumar [mailto:rajeshkumarmahto84@gmail.com]
>
>> I have one file called list.txt where i have mentioned all
>> the files which need to be copied from specific directry.
>>
>> can you please help me with the right copy task syntax which
>> read the files name from list.txt and copy to destination
>directory???
>
>This should work:
>
><!-- vim: set filetype=ant :-->
><project>
> <copy verbose="true" overwrite="yes" todir="tmp">
> <resourcelist>
> <!-- Nimmt die in der Datei enthaltenen Ressourcen
>(Dateinamen). -->
> <file file="filelist.txt"/>
> </resourcelist>
> <globmapper from="D:\Temp\*" to="*"/>
> </copy>
></project>
>
>--
>Michael Ludwig
>
>---------------------------------------------------------------------
>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
RE: help in copy files from list
Posted by "Ludwig, Michael" <Mi...@delphi-mb.de>.
> -----Original Message-----
> From: Rajesh Kumar [mailto:rajeshkumarmahto84@gmail.com]
> I have one file called list.txt where i have mentioned all
> the files which need to be copied from specific directry.
>
> can you please help me with the right copy task syntax which
> read the files name from list.txt and copy to destination directory???
This should work:
<!-- vim: set filetype=ant :-->
<project>
<copy verbose="true" overwrite="yes" todir="tmp">
<resourcelist>
<!-- Nimmt die in der Datei enthaltenen Ressourcen (Dateinamen). -->
<file file="filelist.txt"/>
</resourcelist>
<globmapper from="D:\Temp\*" to="*"/>
</copy>
</project>
--
Michael Ludwig
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org