There were several suggestions to improve exec with spawn="true" with a Java 
wrapper which would do the pumping of stdout/stderr.

Please feel free to proceed and improve the behavior of exec with spawn="true".

I have seen that if you start jboss via bat file on Windows, if you do not 
redirect stdout to NUL jboss dies.

This was working for me :

<exec executable="cmd.exe" spawn="true">
<arg value="/C"/>
<arg value="C:/projects/xpetstore-jdo/jboss/bin/run.bat"/>
<arg value=">NUL"/>
</exec>

Cheers,

Antoine

Reply via email to