ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arijit <>
Subject Re: AW: how to get a process id from a spawned task?
Date Mon, 11 Jun 2007 10:09:02 GMT

Sun's documentation states that JPS may not be supported in future versions
of JDK.. also, it is not supported in Windows 98 and Windows ME... So I
guess JPS will not be a good choice after all...  

with no other generic support to retrieve process ids and take some action
based on the status, it seems to be restricted to using 3rd party tools...   

Steve Loughran wrote:
> arijit wrote:
>> I was hoping not to use any 3rd party tool but maybe something via ANT
>> tasks
>> or Java calls. One of the similar threads mentioned about 'jps' but could
>> not get it working. Keeping it generic so that it can be used not only
>> for
>> windows will be a good approach.
> well, the fact that even in java5 there's nothing in the Java APIs to 
> give you the process ID of a started process is going to make it hard. 
> If someone knew how JPS worked (i.e. there was an official Java 
> interfact to whatever native lib is doing the heavy lifting, life would 
> be simpler
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message