ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5907] - ExecTask waits regardless of what you are executing
Date Mon, 28 Jul 2003 10:49:48 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5907>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5907

ExecTask waits regardless of what you are executing

antoine@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From antoine@apache.org  2003-07-28 10:49 -------
I have fixed this in CVS.
The new attribute is called spawn. When set to true, it means that you want the 
process to run independently of ant.
To make things simple, I have disconnected completely the spawned process from 
ant's stream handlers and logging system.
I have tested my change on Solaris and on Windows 2000 with a simple script 
which does :

rm test.log
sleep 10
touch test.log

the script is still running after ant is finished and the test.log gets written.

here is my xml :

<project name="exec" default="default">
<target name="default">
<exec executable="C:/programme/cygwin/bin/sh.exe" spawn="true" os="Windows 
2000">
   <arg value="C:/dev/testant/titi.sh"/>
</exec>
<exec executable="/usr/bin/sh" spawn="true" os="SunOS">
   <arg value="titi.sh"/>
</exec>
</target>
</project>

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


Mime
View raw message