Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A3FA39DE7 for ; Wed, 8 Feb 2012 04:11:43 +0000 (UTC) Received: (qmail 17204 invoked by uid 500); 8 Feb 2012 04:11:43 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16093 invoked by uid 500); 8 Feb 2012 04:11:18 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 16062 invoked by uid 99); 8 Feb 2012 04:11:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2012 04:11:09 +0000 X-ASF-Spam-Status: No, hits=4.7 required=5.0 tests=FREEMAIL_FORGED_REPLYTO,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.212.169] (HELO nm10.bullet.mail.bf1.yahoo.com) (98.139.212.169) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 08 Feb 2012 04:10:57 +0000 Received: from [98.139.214.32] by nm10.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 04:10:36 -0000 Received: from [98.139.212.240] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 04:10:36 -0000 Received: from [127.0.0.1] by omp1049.mail.bf1.yahoo.com with NNFMP; 08 Feb 2012 04:10:36 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 711833.43659.bm@omp1049.mail.bf1.yahoo.com Received: (qmail 98712 invoked by uid 60001); 8 Feb 2012 04:10:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1328674236; bh=YbMgZ9ZGOuOI2pTAVCYVgBVC2UX7jI2FVTKqEcdxRdc=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=tnjEWYsFAyze8u0m8Pj2Jgn+DFfnp5jaZKZWSXGjKsk7ZE9M/2CepyAyoNvMTAbdOKKRPUY/rS9vTqNNRzGL4sYgg5Mr35sCRch0dje1TUhg5h/gZYIXI/+6UCZtCy4ZjLdwAVc2cWGuuEy65yDSYuZ7C51p66r9V4RJxm7+oZI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=TdAzTUMc4iWM2WxNXhmFzFv6kvBTtryWub41T6/OkIcYNCU0pRjgFSoVO4vmecO7T+DWnyOHwrh5GISaiotFNpOXIkRBpoBtaf09OZCJPSCFn85xbuiG0xmyQPnLtofcIv3vZqMSVMb24XCGYxgMRBbUZBt7dFlOmILT7RW9psc=; X-YMail-OSG: FcSlaQUVM1kiPaq9wmcMT2hxr.AQ8p9MfUl46NbIttQAiJh t_BZOPHCy98E3qrf881_9_NUP8qvZmxSu4rsFH8vUEdlqr5cCFogQFG7Rm7g gEcwT8DDSz0VvjrG2TLpvxLEFjzTnqKitrX8DH86tdRQPyXoeHNF8Fw6HlJj B7pD4CNdDz5AweZQ2XfV2NbDshwpjRiW1.dvaxZGhgelsTScLWBw6Q3zde34 r6Fr.QzsPSnDj4ODLddLRlaoxHY54GVxP4iEDp2gqnAZEKst2l5VPJV5A1qn Lj99cpAIkcEPLSjYiSkurdO80Q18.czClRQFJG48EkvN0RxAsjn720kIJflQ ZYcTsA4BytGujrlSYbGecugrAx27.qpmINVCEUf7cxfu6pRqiz8M2v3kxpGP w30K2Ge5We42FKYwAXL1HOk41c3XZ1CI4cXKHWh4K.yf8dhSKdLT6E9tVOBq Zgk7HEaZhC545I3mQ3B9Jw67e Received: from [98.247.159.22] by web161204.mail.bf1.yahoo.com via HTTP; Tue, 07 Feb 2012 20:10:36 PST X-Mailer: YahooMailWebService/0.8.116.338427 Message-ID: <1328674236.91530.YahooMailNeo@web161204.mail.bf1.yahoo.com> Date: Tue, 7 Feb 2012 20:10:36 -0800 (PST) From: Vimil Saju Reply-To: Vimil Saju Subject: Regarding exec task To: Ant Users List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="1173436188-2059430816-1328674236=:91530" X-Virus-Checked: Checked by ClamAV on apache.org --1173436188-2059430816-1328674236=:91530 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=0A=0AI noticed that on windows, if I use the exec task to run a batch s= cript which in turn starts other processes then if kill ant then the sub-pr= ocesses created by the batch script still continues to run. I did some rese= arch on google and found that the default java implementation of Process.de= stroy does not kill the child processes created by a process on windows. I = also found that there are some third party libraries like jvnet that provid= e the capability of killing all processes created by a process on windows. = So I thought of somehow extending the 'Execute' class of ant to use the fun= ctionality of this 3rd party library, but I find that its difficult if not = impossible to extend this class. I can't find a way to provide my implement= ation of Process class that does something different when its destroy metho= d is called. Other core tasks such as java task directly create an instance= of the 'Execute' class which makes it difficult to globally change how a process is destroyed within ant. If anyone can provide some suggestions on= how this can be accomplished I will be very grateful.=0A=0A=A0Currently th= e build scripts of my project uses the exec task to run a bunch of batch sc= ripts in parallel which in turn execute sql scripts by starting off another= process. I have written the ant script such that if any sql scripts fail t= hen the ant build fails.When the build fails I notice that all the batch sc= ripts have terminated as expected but the processes spawned by these batch = scripts still continue to run.=0A=0AAny help is greatly appreciated.=0A=0AT= hanks=0AVimil --1173436188-2059430816-1328674236=:91530--