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 ANT script running a WIN cmd with start?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT script running a WIN cmd with start??" Watch "ANT script running a WIN cmd with start??" New topic
Author

ANT script running a WIN cmd with start??

noel angel
Ranch Hand

Joined: Oct 27, 2002
Posts: 75
The Build file runs successfully but I don't see the MS windows appear as a result. The start command worked fine from an MS batch file but I need to call it from an ANT script. The args seem to expand correctly.
Anyone have a solution? I need to have the cmd window stay around and ANT not wait fro the command completion. The relevent piece of the build file is below:

<target name="tbus" depends="checkenv">
<exec executable="cmd" os="Windows 2000" spawn="true">
<!-- <arg value="cmd"/>-->
<arg value="BUS SERVER"/>
<arg value="${e2edconf}\..\server\debug\server"/>
<arg value="${e2edconf}\BUS_config.txt"/>
</exec>
</target>


Noel
noel angel
Ranch Hand

Joined: Oct 27, 2002
Posts: 75
Does anyone know of a way to call a windows internal(built-in start) command from an ANT script? Start when called from command line or a script starts a window runs a command sent to it as an argument and leaves the window open when it completes....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT script running a WIN cmd with start??