ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Exec in a new process
Date Tue, 21 Jan 2003 16:14:57 GMT
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 <ddevienne@lgc.com>      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: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Tuesday, January 21, 2003 9:29 AM
To: ant-user@jakarta.apache.org
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:DDevienne@lgc.com]
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:schade@hypergenic.com] 
Sent: Tuesday, January 21, 2003 3:21 AM
To: ant-user@jakarta.apache.org
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message