jQuery in Action, 2nd edition*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant target to load an external batch file (.bat) ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant target to load an external batch file (.bat) ?" Watch "Ant target to load an external batch file (.bat) ?" New topic
Author

Ant target to load an external batch file (.bat) ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
How to write an Ant target to load an external batch file (.bat) ?

Thanks
Giovanni De Stefano
Ranch Hand

Joined: Aug 17, 2004
Posts: 144
Hi!

You can use this:



Where testbat.bat is your batch file, I used the following brainless batch file:



Let me know if it works!
Giovanni


SCJP 1.4
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
it works .

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant target to load an external batch file (.bat) ?
 
Similar Threads
Error: The name specified is not recognized as ...
Environment Problem
ANT BUILD.xml Vs BATCH
Executing DOS commands through ANT
How to make exe file?