File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Executing .vbs scripts with Ant Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Executing .vbs scripts with Ant" Watch "Executing .vbs scripts with Ant" New topic
Author

Executing .vbs scripts with Ant

Brad Robert
Greenhorn

Joined: Feb 25, 2004
Posts: 1
I'm trying to generate a .bat file for our QA group that after the Ant build is run, testers can run which silently removes the previous version of our software and then silently installs the latest. I had done this previously with a .vbs script.
Is there a way to run a .vbs script with Ant? If so, how can I pass variables like buildnumber to it?
Note that I did try to do this through the 'script' task calling a javascript app that I had created, but the ant implementation of this doesnt appear to support an 'ActiveXObject' which is required to modify/create files.
 
 
subject: Executing .vbs scripts with Ant
 
Threads others viewed
How to prevent a MS DOS window popping up when I run cmd.exe from java
JSP Buttons display Horizontal
Can Ant run script generated by XDE?
Process err- not a valid Win32 application
How to capture events from vbs script in java
MyEclipse, The Clear Choice