Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 40382 invoked by uid 500); 24 May 2001 01:53:31 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 40373 invoked from network); 24 May 2001 01:53:31 -0000 Message-ID: <20010524015336.49460.qmail@web13404.mail.yahoo.com> Date: Wed, 23 May 2001 18:53:36 -0700 (PDT) From: Diane Holt Subject: Re: Starting Background Tasks with Ant To: ant-dev@jakarta.apache.org, mop@nuix.com.au In-Reply-To: <01052420424105.29165@host54.syd.nuix.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N A couple of people submitted patches for this sort of thing awhile back -- one was to allow to background its process, the other was for to do that. Here's the mail that mentions both: http://marc.theaimsgroup.com/?l=ant-dev&m=98236259623968&w=2 Neither looks to have been committed, so if you wanted to use them, you'd need to pick them up from the archive. But note: These weren't tasks -- they were changes to existing tasks, so if you're going to use either (or both) of them, it'd mean changing your local version of the task(s). Diane --- Nigel Leslie wrote: > Hello, > > I realise that it is inappropriate to email this question to the ant-dev > > list, but there was no response from the ant-users list. I also realise > that > the starting of background tasks is non-portable, but surely somebody > has > encountered this problem before? > > -- > > The question: > > I am using Ant on a Linux machine, and am attempting to start a java > process > as a background task. However, including a '&' (or &) as an argument > does > not cause the process to start separately. (in fact it didn't like it at > all) > > I have also created a .sh script which -then- starts another process > with an > &. Running this .sh from the command prompt causes the program to run in > the > background, however within Ant the control does not return. > > I'm guessing that Ant does not regard a or to be completed > until all child tasks have finished. Is this correct? Is this a bug (or > even > a feature)? Is there a workaround? > > Thanks, > Nigel > > > ---------- Forwarded Message ---------- > Subject: Starting Background Tasks with Ant > Date: Tue, 22 May 2001 01:19:27 +1000 > From: Nigel Leslie > To: ant-user@jakarta.apache.org > > > Good Afternoon, > > I am using Ant on a Linux machine, and am attempting to start a java > process > as a background task. However, including a '&' (or &) as an argument > does > not cause the process to start separately. (in fact it didn't like it at > all) > > I have also created a .sh script which -then- starts another process > with an > &. Running this .sh from the command prompt causes the program to run in > the > background, however within Ant the control does not return. > > I'm guessing that Ant does not regard a or to be completed > until all child tasks have finished. Is this correct? Is this a bug (or > even > a feature)? Is there a workaround? > > Thanks, > Nigel > > -- > Nigel Leslie > NUIX Pty Ltd > mailto:mop@nuix.com.au ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/