aspose file tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Help Needed with ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Help Needed with ANT" Watch "Help Needed with ANT" New topic
Author

Help Needed with ANT

Karthikeyan Rajendraprasad
Ranch Hand

Joined: Apr 16, 2003
Posts: 70
I am in need to create a build having the modified and newly added files in an application. Say we have two folders "current" and "old". i am in need to take the files from folder current(modified and new files).

is it easy with ANT. if so how to start about..

Thanks in advance


Karthikeyan<br />SCJP 1.4, SCWCD.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I think, you should use ANT + CVS .


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
Balan Raj
Ranch Hand

Joined: Aug 26, 2003
Posts: 74
You need to build two different folders.. Is that all ?
Dont think I understand your question..
A typical example to compile two folders can be something like..

Hope this gives u a ruf idea..

Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

If all you are doing is moving files, look at the copy task. It has an optional overwrite attribute, which defaults to false. So Ant only copies the files which have been created or modified since you last ran the copy task.

Most Ant tasks behave in this way, only acting on newer resources unless you explicitly tell the target to overwrite everything.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: Help Needed with ANT
 
Threads others viewed
Ant Task for taking backup
Last Modified Time stamp from Ant script
ant with smartCVS
Configuration management of JBoss files
Deploying servlets as a war file
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture