Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

did any body used ant tool

 
divya chamarti
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any body help me in "copying the files like xml files from one folder to another one using ant tool not directly or not by using the java codes"
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about this: in your file explorer right-click the file that you want to copy, in the drop down menu pick the option copy, now look for the folder into which you want to copy the file, open it, in the folder are right-click with your mouse, and choose the paste option.

Now, seriously. Let me see if I am getting this. You want to use ant to copy the file, but you do not want to invoke the ant command. At the same time, you do not want to use Java at all.

What do you mean by that?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Ant forum.
 
divya chamarti
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i didn't mean that i won't use ant command that is the need only
what i said is i don't want it to be done by directly or by using java code(means FileInput & FileOutput Streamsin a java class file)
but i want it to be done only by the ant command .
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

I'm not sure what you mean by "not using Ant directly". Have you read through the Copy chapter of the Ant manual? It explains the in detail how to copy files using Ant.
[ July 30, 2006: Message edited by: Ulf Dittmer ]
 
divya chamarti
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ulf
can you help me
in ant <copydir is a deprecated task in version no. 1.6.5 so instead of copydir what should we use and what are the attributes of it?
 
Praveen Namboodiri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think to Copy a directory to another directory you can use.

<copy todir="../new/dir">
<fileset dir="src_dir"/>
</copy>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic