Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 73302 invoked from network); 6 Apr 2004 14:46:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Apr 2004 14:46:54 -0000 Received: (qmail 96937 invoked by uid 500); 6 Apr 2004 14:46:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96733 invoked by uid 500); 6 Apr 2004 14:46:39 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 96715 invoked from network); 6 Apr 2004 14:46:38 -0000 Received: from unknown (HELO ussjmh01.bea.com) (63.96.162.5) by daedalus.apache.org with SMTP; 6 Apr 2004 14:46:38 -0000 Received: from ussjfe99.amer.bea.com (ussjfe99b.bea.com [172.16.120.65]) by ussjmh01.bea.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id i36EkfXu016184 for ; Tue, 6 Apr 2004 07:46:41 -0700 Received: from USBUEX01.amer.bea.com ([10.40.0.15]) by ussjfe99.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 6 Apr 2004 07:46:40 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Repost - why ant doesn't exit when a script exits on windows? Date: Tue, 6 Apr 2004 10:46:39 -0400 Message-ID: <3CF7B7316EC0F346B27FA99A0359594E01B1866E@usbuex01.bea.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Repost - why ant doesn't exit when a script exits on windows? Thread-Index: AcQb5PouX7Zfo9doTIu7N2r+MUQ8MQAALPXA From: "Yung Choi" To: "Ant Users List" X-OriginalArrivalTime: 06 Apr 2004 14:46:40.0260 (UTC) FILETIME=[F86D7440:01C41BE5] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Alexey, So does JAVA works differently for Solaris and windows? I'm using JDK1.5.0 pre-beat2 b40 for both of them. Thanks, - yung |-----Original Message----- |From: Alexey N. Solofnenko [mailto:A.Solofnenko@mdl.com]=20 |Sent: Tuesday, April 06, 2004 10:38 AM |To: Ant Users List |Subject: Re: Repost - why ant doesn't exit when a script exits=20 |on windows? | |I think it is a Java behaviour. Once I tried starting new=20 |programs with JNI and closed hProcess right after the process=20 |started and amazingly I did not have any problems with buffer=20 |overflows and exit blocking.=20 |Unfortunately there is no way in Java itself to close the=20 |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: |> |>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D |> |> |> |> |> |> |> |> |>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D |> |>startTest.sh looks (using this with UNIX, make sure chmod +x |>startTest.sh): |> |>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D |>#! /bin/ksh |> |>date |> |>sleep 60 > /dev/null 2>&1 & |> |>date |> |>exit 0 |>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D |> |>ant -f antTest.xml |> |>I believe that this antTest.xml should complete as soon as the=20 |>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=20 |additional=20 |>commands, e-mail: user-help@ant.apache.org |> =20 |> | |--------------------------------------------------------------------- |To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 |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