Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT script running a WIN cmd with start??

 
noel angel
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic