Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
how to get a process id from a spawned task?

how to get a process id from a spawned task?

2007-05-28       - By Jay Dickon Glanville
Reply:     1     2     3     4     5  

Hello all.

Is there a way to get the process id (I'm dealing with a windows
system here, but I believe the question could be asked of both windows
an UNIX families) of a task that is spawned?  I have a java task:
 <java spawn="true" ... />
and I'd like to be able to echo the process id to the user (so that
they can kill the process if they so desire).

Is there a convenient way to get the process id?

Thanks

--
Jay Dickon Glanville

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.