ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <j_a_fernan...@yahoo.com>
Subject Re: [PATCH] Asynchronous execution of processes
Date Tue, 13 Nov 2001 03:11:41 GMT
From: "Bill Burton" <billb@progress.com>

> Hello,
> 
> > I'm not sure whether this satisfies all use cases people have for
> > detach, leaving the currently running VM completely would probably be
> > preferred by most people.  Maybe we should use your version for all
> > the OSes we don't have an OS dependent version for?
> 
> It doesn't.  What I had in mind for detached usage was to give Ant the
> ability to be an application launcher.  Many applications use platform
> specific scripts--shell scripts on UNIX and .bat files for Windows, etc. 
> This is a real pain not just because one needs to write and maintain both
> types of scripts but also because Windows .bat files are so limited in
> functionality.  
> 
> So, although Ant can already be used as an application launcher, it's JVM
> hangs around waiting for the application to exit.  This is wasteful and
> means the build file can only launch one application per invocation of
> Ant.  
> 

I am not sure if you understand exactly how the patch works.
As long as the launched task does not perform std IO, the task will continue
to run after ANT's JVM stops running. That means that the task
can be used as you  proposed as an application launcher.

The fact that as long as the ANT JVM is running, ANT can still control the
the launched process, I think is an advantage beacuse it allows other escenarios
in which the feature can be used.

Jose Alberto



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


Mime
View raw message