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 Wed, 07 Nov 2001 21:24:28 GMT
From: "Bill Burton" <billb@progress.com>

> Hello Jose,
> 
> Thanks for working on this often requested functionality.  
> 
> Shouldn't output="file" be required when detach="true"?
> 
> In the case of the <java> task, how will the behavior differ if
> fork="true" or not?  I would think if fork="true" then the standard
> streams should be redirected to whatever output file was specified.
> 

Actually, is the other way around, for the time being you should not use any of the output
attributes.
Due to the way IO is manage by the current code. Notice also that all the outut redirection
is done
by Java so once the the ANT's VM ends IO has no where to go.

What do the external process do when that happens it is upto the OS.

The current implementation for <java> is shuch that detach=true ==> fork=true.
But still you cannot use "output" in detach mode because the file will be closed 
before the process is allowed to finish.

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