--- Eric Dudouet <[EMAIL PROTECTED]> wrote:
> Hi all !
> I Repost my 25/04 question cos' I don't have any
> responses.
>
> Hi all !
> I'm working with ant v1.3 under Win NT SP5 and JDK
> 1.3
>
> I try to launch a cmd process in a new dos window
> from my build.xml file
>
> without stopping the execution of ant.
> That is : execute the dos "start"command with a .bat
> file in arg.
> I try : (test.bat is in my basedir)
> <target name="test3" depends="deploy">
> <exec executable="cmd.exe">
> <arg line="/c start test.bat"/>
> </exec>
> </target>
> which works well, but ant stops and waits for the
> new cmd window to be
> closed
>
> When I try :
>
> <target name="test2" depends="deploy">
> <execon executable="start">
> <fileset dir="." includes="test.bat"/>
> </execon>
> </target>
>
> I got the nested exception :
>
> Execute failed: java.io.IOException: CreateProcess:
> start
> E:testrun.bat error=2
> --- Nested Exception ---
> java.io.IOException: CreateProcess: start
> E:testrun.bat error=2
> at java.lang.Win32Process.create(Native
> Method)
> at
> java.lang.Win32Process.<init>(Win32Process.java:66)
> at java.lang.Runtime.execInternal(Native
> Method)
> at java.lang.Runtime.exec(Runtime.java:551)
> at java.lang.reflect.Method.invoke(Native
> Method)
> at
>
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:509)
>
> at
>
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
> at
>
org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:167)
> at
>
org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:162)
> at
> org.apache.tools.ant.Target.execute(Target.java:153)
> at
>
org.apache.tools.ant.Project.runTarget(Project.java:898)
> at
>
org.apache.tools.ant.Project.executeTarget(Project.java:536)
> at
>
org.apache.tools.ant.Project.executeTargets(Project.java:510)
>
> at
> org.apache.tools.ant.Main.runBuild(Main.java:421)
> at
> org.apache.tools.ant.Main.main(Main.java:149)
> What went wrong with this ?
>
> I understand this feature could seem strange,
> because it breaks the
> linear execution of the compilation process.
> But I want to do that.
> Is there any way to do that ?
> Could somebody help me ?
>
> Thanks
>
>
> --------
> Eric DUDOUET
>
> ACTOLL
> 19 Av du GRANIER
> 38240 MEYLAN
> FRANCE
>
> tel fixe : (033)-04-76-18-18-25
> mobile : 06-72-38-87-12
> e-mail : [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/