ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Gies" <olivier.g...@bull.net>
Subject RE: Continu exec task, while leaving ant
Date Mon, 07 Jul 2008 13:02:31 GMT
Use the "spawn" and "fork" attributes of <exec> task (see Ant User manual
for usage)

-----Message d'origine-----
De : jantje [mailto:janvanoppen@skynet.be] 
Envoyé : lundi 7 juillet 2008 20:45
À : user@ant.apache.org
Objet : Continu exec task, while leaving ant


Hi there, is it possible to start (in ant) something in a shell and let this
running, while stopping ant. f.i:

  <target name="emulateProjectIso" depends="license, testIsoExists"
description="Emulate the project iso" unless="file.exists">
    <echo level="warning" message="Not supported when booting from live
cd"/>
    <exec executable="/bin/bash" failonerror="true">
      <arg value="-c" />
      <arg value="qemu -no-kqemu -m 512 -cdrom
${basedir}/build/liveCd/iso/project-r*.iso"/>
    </exec>
  </target>

So "ant emulateProjectIso" starts, thr program qemu eulates the cd.. qemu is
still running, but ant has stopped..
-- 
View this message in context:
http://www.nabble.com/Continu-exec-task%2C-while-leaving-ant-tp18315876p1831
5876.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


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


Mime
View raw message