ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Capturing Output of a Spawned Java Process?
Date Mon, 26 Jun 2006 11:20:58 GMT
Dominique Devienne wrote:
> Because the typical use case spawn is to have the spawned process
> outlive the Ant process. Pumping the out/err streams of the process
> would prevent the Ant VM from exiting, no? I'm no specialist of
> System.exec.
> 
> If you can provide a patch that allows Ant to pump the streams while
> still alive, and doesn't prevent it from exiting normally as usual,
> we'll sure consider it. This stuff is usually platform-dependent and
> difficult to get right though. --DD
> 

yes, spawning deliberately discards everything as its the only way to 
stop the process blocking when ant dies. Its really there for people 
that want to use ant as a launcher of apps, rather than a build tool.

use fork=true spawn=false to debug; switch to spawn afterwards.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message