Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

RE: help in copy files from list

Ludwig, Michael

2010-08-26

Replies: Find Java Web Hosting

Author LoginPost Reply
> -----Original Message-----
> From: Rajesh Kumar [mailto:rajeshkumarmahto84@(protected)]

> 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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.