17, 2007 12:50 PM
To: Ant Users List
Subject: Re: return status problem in ant.bat
Try calling .exitValue() after the .waitFor() returns.
It seems like both .waitFor() and .exitValue() would return the same
value (based on looking at the JAVA API) however in my experience the
.exitValue() seems
Try calling .exitValue() after the .waitFor() returns.
It seems like both .waitFor() and .exitValue() would return the same value
(based on looking at the JAVA API) however in my experience the .exitValue()
seems to give me the sub-process value more realiably.
Process p = pb.start();
int r =