This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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....
 
jQuery in Action, 2nd edition
 
subject: I want my ant script Implement a function
 
Similar Threads
Ant Undeploy Problem
FileIO: java.io.FileNotFoundException
Running Book Examples
Compilation error while building the project using Ant
Sequencing Records