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 11:23:27 GMT
 


-----Original Message-----
From: jantje [mailto:janvanoppen@skynet.be] 
Sent: Friday, July 11, 2008 10:09 AM
To: user@ant.apache.org
Subject: RE: Continu exec task, while leaving ant

/*
Thanks..

I have tryes all your options: nothing worked. And yes, bash is my login
shell.. Other exec commands work, f.i. starting apache-tomcat.. And the
line
with "-c qemu..." does work, so no problem with rights I think..

Are we missing something?
*/

Try  to run  the antscript with root account or
maybe with <exec  arg ... sudo>

Did you try the apache-tomcat call within <exec>  ?

What about catching the output f.e.

<exec executable="bash" failonerror="true" 
 outputproperty="result" resultproperty="rc.ant">
 <arg value="ant -diagnostics" />
</exec>

or
...
<arg value="du -hs /tmp" />
...

Use outputproperty and resultproperty with your call and tell
us what comes back, we need the output and RC

As you're already using antcontrib you may use the
<shellscript> task, but under the hood it's nearly the
same, means if your command doesn't work with <exec>
it won't work with <shellscript> either.

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