Quick shot. Try the following: <exec executable="cmd.exe" spawn="true" > <arg line="/C start "AnyWindowTitle" /I cmd.exe /T:70 /K "${PropertyThatHoldsTheExecutbaleNameToStart}" /> </exec>
> -----Ursprüngliche Nachricht----- > Von: Jan K [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 18. September 2008 13:54 > An: user@ant.apache.org > Betreff: How to Configure batch file in Ant? > > > I am a new bee to Ant.I need to know how to configure batch file in > Ant.I am > using Ant 1.6.5 and Linux(ubuntu)platform.I tried using > <target name="test"> > <exec dir="." executable="cmd" spawn="true"> > <arg line="/c start activemq.bat"/> > </exec> > </target> > <target name="default"> > <antcall target="test" /> > </target> > I really dont know what i am doing is correct.I browsed through google > and > got this exec command.I am geting an error as Execute failed: > java.io.IOException: java.io.IOException: cmd: not found > Please help me to solve this. > -- > View this message in context: http://www.nabble.com/How-to-Configure- > batch-file-in-Ant--tp19551111p19551111.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]