RE: return status problem in ant.bat

2007-02-19 Thread Jose Antonio Pla Rodriguez
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

Re: return status problem in ant.bat

2007-02-17 Thread Ninju Bohra
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 =