Ant copy task

J

javaguy44

Hi everyone,

Had an apache ant question and hope someone can help me out.

I am using the copy task to copy a directory to antoher directory.
Has anyone echoed the files copied, so that I can see the file names
of those files that were copied?

Thanks
 
R

Rob Shepherd

javaguy44 wrote:
Has anyone echoed the files copied, so that I can see the file names
of those files that were copied?

Ant will report something like... N files copied, I know this isn't a great help but Ant
will only copy things which need copying

eg. New files which don't exist at Dest
Modified files changed at source


It won't bother copying anything with equal size and equal timestamp

HTH

Rob
 
J

JavaJug

javaguy44 said:
Hi everyone,

Had an apache ant question and hope someone can help me out.

I am using the copy task to copy a directory to antoher directory.
Has anyone echoed the files copied, so that I can see the file names
of those files that were copied?

Thanks

use the "verbose" attribute of the copy task (verbose="yes")
or "ant -v buildFile.xml" to force all verbose tasks to verbose="yes"
http://ant.apache.org/manual/CoreTasks/copy.html
(Ant Copy task man page)
 
T

Tony Morris

Ant will report something like... N files copied, I know this isn't a
great help but Ant
will only copy things which need copying

eg. New files which don't exist at Dest
Modified files changed at source


It won't bother copying anything with equal size and equal timestamp


Check out the "overwrite" attribute of the copy task.

--
Tony Morris
(BInfTech, Cert 3 I.T.)
Software Engineer
(2003 VTR1000F)
Sun Certified Programmer for the Java 2 Platform (1.4)
Sun Certified Developer for the Java 2 Platform
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top