• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help Needed with ANT

 
Karthikeyan Rajendraprasad
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think, you should use ANT + CVS .
 
Balan Raj
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic