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.

-Bill

Jose Alberto Fernandez wrote:
> 
> Hi,
> 
> Here I am again, OH NO!!!  :-)
> 
> This is the patch that we discussed about allowing executing forked processes 
> asynchronously.
> Requested by Ken Wood. It provides a new "detach" attribute for the <exec> 
> and <java> tasks.
> 
> Whether the forked command continues running after the JVM stops, I think 
> depends on the
> OS and on whether it performs IO on the standard streams or not.
> The changes do not rely on any OS specifics (all Java) and you can still use 
> the timeout
> option to stop the forked process (as long as ANT's VM is still running).
> 
> Only tested on Win2K, were the process will keep on running after the VM 
> ends, unless
> it tries to do IO on the standard streams.
> 
> Hope this patch passes the commiters muster ;-)
> 
> Cheers,
> 
> Jose Alberto

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to