Thanks for your reply,

I will try to answer your questions:

<exec/> works with apache tomcat AND with qemu, I came to this conclusion
after doing some tests.. They do not work, when they are in <forget/> from
ant-contrib, so this does not work:
    <forget>
      <exec executable="bash" failonerror="true">
        <arg value="-c" />
        <arg value="apache-tomcat start;"/>
      </exec>
    </forget>
    RESULT: "BUILD SUCCESFUL", nothing else..

And this does work:
    <exec executable="bash" failonerror="true">
      <arg value="-c" />
      <arg value="apache-tomcat start;"/>
    </exec>

While <forget/> works with f.i. <echo/>
    <forget>
      <echo>Test!</echo>
    </forget>

Like you suggested: It does not work with <exec/> and also not with
<shellscript/> (from ant-contrib)

And here is the output you asked for:

------- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on June 17 2008

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.0
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on June 17 2008
ant.java.version: 1.5
ant.core.lib: /usr/local/apache-ant/bootstrap/lib/ant.jar
ant.home: /usr/local/apache-ant/bootstrap

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/local/apache-ant/bootstrap
ant-testutil.jar (14907 bytes)
xml-apis.jar (195119 bytes)
ant-swing.jar (6678 bytes)
ant-junit.jar (92549 bytes)
ant-launcher.jar (9939 bytes)
ant.jar (1135848 bytes)
ant-trax.jar (6884 bytes)
xercesImpl.jar (1212965 bytes)
ant-nodeps.jar (427954 bytes)
ant-jmf.jar (6596 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /home/afstudeerwerk
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
p4reopen : Not Available (the implementation class is not present)
image : Not Available (the implementation class is not present)
sshexec : Not Available (the implementation class is not present)
wlrun : Not Available (the implementation class is not present)
p4label : Not Available (the implementation class is not present)
p4revert : Not Available (the implementation class is not present)
p4submit : Not Available (the implementation class is not present)
scp : Not Available (the implementation class is not present)
p4change : Not Available (the implementation class is not present)
p4delete : Not Available (the implementation class is not present)
p4integrate : Not Available (the implementation class is not present)
rexec : Not Available (the implementation class is not present)
stlist : Not Available (the implementation class is not present)
telnet : Not Available (the implementation class is not present)
p4sync : Not Available (the implementation class is not present)
p4edit : Not Available (the implementation class is not present)
antlr : Not Available (the implementation class is not present)
netrexxc : Not Available (the implementation class is not present)
ftp : Not Available (the implementation class is not present)
p4resolve : Not Available (the implementation class is not present)
starteam : Not Available (the implementation class is not present)
stylebook : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
p4have : Not Available (the implementation class is not present)
jdepend : Not Available (the implementation class is not present)
stcheckin : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
p4labelsync : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
p4fstat : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
p4counter : Not Available (the implementation class is not present)
p4add : Not Available (the implementation class is not present)
ddcreator : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use
it

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: /usr/local/apache-ant/bootstrap/lib/xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location:
/usr/local/apache-ant/bootstrap/lib/xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : /usr/local/jdk1.5.0_15/jre/lib/i386
java.vm.version : 1.5.0_15-b04
ant.library.dir : /usr/local/apache-ant/bootstrap/lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : :
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : unknown
java.vm.specification.name : Java Virtual Machine Specification
user.dir : /home/afstudeerwerk/project
java.runtime.version : 1.5.0_15-b04
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
java.endorsed.dirs : /usr/local/jdk1.5.0_15/jre/lib/endorsed
os.arch : i386
java.io.tmpdir : /tmp
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
os.name : Linux
ant.home : /usr/local/apache-ant/bootstrap
sun.jnu.encoding : ISO-8859-1
java.library.path :
/usr/local/jdk1.5.0_15/jre/lib/i386/client:/usr/local/jdk1.5.0_15/jre/lib/i386:/usr/local/jdk1.5.0_15/jre/../lib/i386
java.specification.name : Java Platform API Specification
java.class.version : 49.0
sun.management.compiler : HotSpot Client Compiler
os.version : 2.6.24.5-smp
user.home : /home/afstudeerwerk
user.timezone :
java.awt.printerjob : sun.print.PSPrinterJob
file.encoding : ISO-8859-1
java.specification.version : 1.5
user.name : afstudeerwerk
java.class.path :
/usr/local/apache-ant/bootstrap/lib/ant-launcher.jar:/usr/local/jar/junit.jar:/usr/local/jar/junit.jar:/usr/local/apache-ant/bootstrap/lib/ant-testutil.jar:/usr/local/apache-ant/bootstrap/lib/xml-apis.jar:/usr/local/apache-ant/bootstrap/lib/ant-swing.jar:/usr/local/apache-ant/bootstrap/lib/ant-junit.jar:/usr/local/apache-ant/bootstrap/lib/ant-launcher.jar:/usr/local/apache-ant/bootstrap/lib/ant.jar:/usr/local/apache-ant/bootstrap/lib/ant-trax.jar:/usr/local/apache-ant/bootstrap/lib/xercesImpl.jar:/usr/local/apache-ant/bootstrap/lib/ant-nodeps.jar:/usr/local/apache-ant/bootstrap/lib/ant-jmf.jar:/usr/local/jdk1.5.0_15/lib/tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : /usr/local/jdk1.5.0_15/jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
java.vm.info : mixed mode, sharing
java.version : 1.5.0_15
java.ext.dirs : /usr/local/jdk1.5.0_15/jre/lib/ext
sun.boot.class.path :
/usr/local/jdk1.5.0_15/jre/lib/rt.jar:/usr/local/jdk1.5.0_15/jre/lib/i18n.jar:/usr/local/jdk1.5.0_15/jre/lib/sunrsasign.jar:/usr/local/jdk1.5.0_15/jre/lib/jsse.jar:/usr/local/jdk1.5.0_15/jre/lib/jce.jar:/usr/local/jdk1.5.0_15/jre/lib/charsets.jar:/usr/local/jdk1.5.0_15/jre/classes
java.vendor : Sun Microsystems Inc.
file.separator : /
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.cpu.isalist :

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is /tmp
Temp dir is writeable
Temp dir alignment with system clock is -121 ms

-------------------------------------------
 Locale information
-------------------------------------------
Timezone Central European Time offset=7200000

-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection

















Rebhan, Gilbert wrote:
> 
>  
> 
> 
> -----Original Message-----
> From: jantje [mailto:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Continu-exec-task%2C-while-leaving-ant-tp18315876p18404491.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]

Reply via email to