This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes I want my ant script Implement a function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "I want my ant script Implement a function" Watch "I want my ant script Implement a function" New topic
Author

I want my ant script Implement a function

yu xiaohang
Greenhorn

Joined: Sep 15, 2011
Posts: 5
hello everybody i am using ant in my project ,and i found it is difficult to copy files to different directories at one time ,but sometimes i must excute an operation like making patch to current webapps:

1. i have two dirs A and B, then i have some *.class patch files in dir A;
2. next i unzip war file of current version webapp into dir B;
3. a file named “change.list” was placed in dir A ,*.class files' names and address in the app‘s directory are described in following fomate:

CommFlowCancelListenerII.class,com/lnsoft/ess/common/
CommonOperateII.class,com/lnsoft/ess/common/

4. i want ant script read change.list file then copy those *.class files from dir A to dir B with the right address described in the change.list file so my

5. i rezip dir B to a .war file, at last this war package could be updated automatically when i run my ant script.

i have tried it for several days but i still have no result,any one can help me? just give me some advise, please....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want my ant script Implement a function