ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <Gilbert.Reb...@huk-coburg.de>
Subject RE: Continu exec task, while leaving ant
Date Fri, 11 Jul 2008 06:46:02 GMT
 


-----Original Message-----
From: jantje [mailto:janvanoppen@skynet.be] 
Sent: Thursday, July 10, 2008 8:06 PM
To: user@ant.apache.org
Subject: RE: Continu exec task, while leaving ant

/*
Thanks! The <forget/> -task works now.. f.i.
    <forget>
      <echo message="test"/>
    </forget>

However, when using it with the <exec/> -task, I get no error and it
does
nothing (Is there a way to solve it?) [PS: the echo message is also not
displaying. Still I get the BUILD SUCCESFULL back]:
    <forget>
      <exec executable="/bin/bash" failonerror="true">
        <arg value="-c" />
        <arg value="qemu -no-kqemu -m 512 -cdrom
${basedir}/build/liveCd/iso/project.iso;"/>
      </exec>
      <echo message="test"/>
    </forget>
*/

currently on windows here, f.e.

<!-- start Notepad and wait for user input ... -->
<forget>
  <exec executable="notepad.exe">
    <arg value="c:/notes.txt" />
   </exec>
</forget>

works fine.

try =
<exec executable="bash" failonerror="true">
        <arg value="-c qemu -no-kqemu -m 512 -cdrom
${basedir}/build/liveCd/iso/project.iso" />
</exec>

or
...
<arg line="-c qemu -no-kqemu -m 512 -cdrom
${basedir}/build/liveCd/iso/project.iso" />
...

means put all on one line with arg value || arg line ...

if that doesn't work either, it's most likely a problem
with user rights

Is the bash your login shell ?
Did you try the exec a shell ?

Regards, Gilbert

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


Mime
View raw message