ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: 'java' task does not exit
Date Sun, 02 Apr 2006 20:08:00 GMT
John Sisson wrote:
> Hello
> I have extended the ant 'org.apache.tools.ant.taskdefs.Java' task to
> setup many of the parameters from a property file using my class
> 'com.nxps.ant.tasking.JavaNx'; apart from the parameter management its
> action is pretty simple:

...

> It appears that Ant now just knows there is another process even though
> it is completely independent and Ant cannot complete the task until that
> process dies. This can be shown by killing OpenOffice explicitly,
> whereupon the Ant task completes.

clearly ant does not consider child processes to be independent. Indeed, 
it could not do so and still route input and output properly, handle 
failures, or even block till the program finished.


> 
> So the question:
> Is this working as would be expected? Is there a way to launch a child
> process from within an application under control of Ant such that Ant
> will complete when the primary application terminates???
> 

I'd look at the spawn attribute


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


Mime
View raw message