Looks like you're right. I tried all the following to no avail. If anyone
knows of a way to start a background process from Ant in Windoze in a
windoze-independent manner, please let us know. Thanks, --DD
<?xml version="1.0"?>
<!-- ANT build file to test a specific feature or bug of ANT.
Dominique Devienne <[EMAIL PROTECTED]> January 2003
-->
<project name="antx" default="test">
<target name="test">
<!-- This doesn't return immediately, but starts IE
<exec vmlauncher="false"
executable="C:\Program Files\Internet Explorer\IEXPLORE.EXE">
</exec>
-->
<!-- This opens a DOS window, not even launching IE, nor returning
<exec vmlauncher="false" executable="cmd.exe">
<arg line="/c start" />
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<!-- This opens a DOS window, not even launching IE, nor returning
<exec vmlauncher="false" executable="start">
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<!-- This doesn't return immediately, but starts IE, as expected
<exec vmlauncher="true"
executable="C:\Program Files\Internet Explorer\IEXPLORE.EXE">
</exec>
-->
<!-- This opens a DOS window, not even launching IE, nor returning
<exec vmlauncher="true" executable="cmd.exe">
<arg line="/c start" />
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<!-- This hangs Ant 'inside' the CMD shell started...
<exec vmlauncher="true" executable="cmd.exe">
<arg line="/c start /B" />
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<!-- This fails, since there's no start program of course
<exec vmlauncher="true" executable="start">
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<!-- This opens a DOS window, not even launching IE, nor returning
P:\org_apache\antx>type cmd-spawn.bat
start %*
<exec vmlauncher="false" executable="cmd-spawn.bat">
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<!-- This hangs Ant 'inside' the CMD shell started...
P:\org_apache\antx>type cmd-spawn.bat
start /B %*
<exec vmlauncher="false" executable="cmd-spawn.bat">
<arg value="C:\Program Files\Internet Explorer\IEXPLORE.EXE" />
</exec>
-->
<echo message="Launched IE" />
</target>
</project>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:29 AM
To: [EMAIL PROTECTED]
Subject: AW: Exec in a new process
I tried a lot and searched the archive ... but nothing works.
The start command gave the hint (Win2K SP2 German):
Wird eine grafische 32-Bit-Anwendung aufgerufen, wartet CMD.EXE nicht
auf
das Beenden dieser Anwendung, sondern kehrt sofort zur
Eingabeauforderung
zur�ck. Das gilt NICHT, wenn diese Anwendung aus einem Befehlsskript
heraus aufgerufen wird.
Translation (by me):
If a graphical 32-bit-application is called, CMD.EXE doesn�t wait for
exiting of this application. It returns directly back to the shell.
This is NOT the case, if the application is called by a command-script.
I think I have to wait for <spawn> ...
Jan Mat�rne
-----Urspr�ngliche Nachricht-----
Von: Dominique Devienne [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 21. Januar 2003 15:53
An: 'Ant Users List'
Betreff: RE: Exec in a new process
Not in a platform-independent way. There's ongoing discussion (work?) about
a <spawn> task that would allow that. On Win2K though, you could achieve it
with <exec vmlauncher="false"> and the start command. Look up the archives
for examples. --DD
-----Original Message-----
From: Ren� Schade [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 3:21 AM
To: [EMAIL PROTECTED]
Subject: Exec in a new process
Hi,
Is it possible to start a new process (e.g, open Internet Explorer) and
contiune without waiting for Internet Explorer to close?
Regards,
Ren� Schade
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>