The spawn attribute runs my primary process without its console log being visible; now you have to run (via ant) a tail program and attach it to the process. I have done this but it is pretty inconvenient as there is a family of 20 or more processes run by my extended NxJava command each with its own property file of launch attributes. These are deliverables at customer sites and the added complexity means it would be easier to revert to os-specific launch scripts. It might be better to execute the OpenOffice instance from within my process via the os-command shell so that that spawns it or perhaps via Ant from java which I have not yet tried, but now I will.
-----Original Message----- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: Sunday, April 02, 2006 1:08 PM To: Ant Users List Subject: Re: 'java' task does not exit 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]