ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: Repost - why ant doesn't exit when a script exits on windows?
Date Tue, 06 Apr 2004 14:37:32 GMT
I think it is a Java behaviour. Once I tried starting new programs with 
JNI and closed hProcess right after the process started and amazingly I 
did not have any problems with buffer overflows and exit blocking. 
Unfortunately there is no way in Java itself to close the process handle.

- Alexey.

Yung Choi wrote:

>Should ant exit when it's executable script exit?
>If it does not, is it a ant bug?
>The followings is with ant 1.6.1:
>
>A simple ant test file antTest.xml like this:
>
>======================================================
><project name="test" default="test">
><target name="test">
>   <exec executable="sh" failonerror="true">
>     <arg value="-c"/>
>     <arg value="startTest.sh"/>
>   </exec>
></target>
></project>
>======================================================
>
>startTest.sh looks (using this with UNIX, make sure chmod +x
>startTest.sh):
>
>======================================================
>#! /bin/ksh
>
>date
>
>sleep 60 > /dev/null 2>&1 &
>
>date
>
>exit 0
>======================================================
>
>ant -f antTest.xml
>
>I believe that this antTest.xml should complete as soon as
>the startTest.sh hits exit 0.
>It does as I expect for Solaris, but not for windows.
>
>So could I enter a bug report for this?
>If so, where and how?
>
>Thanks for any help,		- yung
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>  
>

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


Mime
View raw message