aspose file tools*
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 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 "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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ant target to load an external batch file (.bat) ?