That's right sorry, I'm too much used to the <java> task, never realized that <exec> had such problem ...

<forget> form ant-contrib seems to do the trick indeed.


*Olivier Gies*

*Delivery Manager
Customs & Tax Software Engineering Center
Bull, Architect of an Open World ^TM
Phone: +86 (10) 65978001 - Ext 555 *

*www.bull.com <http://www.bull.com/>*

*This e-mail contains material that is confidential for the sole use of
the intended recipient. Any review, reliance or distribution by others
or forwarding without express permission is strictly prohibited. If you
are not the intended recipient, please contact the sender and delete all
copies.*



-------- Original Message  --------
Subject: Re: Continu exec task, while leaving ant
From: jantje <[EMAIL PROTECTED]>
To: user@ant.apache.org
Date: 07/07/2008 22:20

Thanks, but the <exec/> task does not have an fork attribute in the
documentation. And when just implementing this, I get the next error:

BUILD FAILED
/home/afstudeerwerk/project/build.xml:194: exec doesn't support the "fork"
attribute





Olivier Gies wrote:
Use the "spawn" and "fork" attributes of <exec> task (see Ant User manual
for usage)

-----Message d'origine-----
De : jantje [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
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]

Reply via email to