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
m.exit(5); } } else { System.out.println("FAILED"); System.exit(5); } - Original Message From: Jose Antonio Pla Rodriguez <[EMAIL PROTECTED]> To: user@ant.apache.org Sent: Saturday, February 17, 2007 1:33:54 AM Subject: return status problem in ant.bat Hello list: I am progra

return status problem in ant.bat

2007-02-16 Thread Jose Antonio Pla Rodriguez
Hello list: I am programming a java application than execute a shell command and gets the return status, with this value I can know if the process success (return status equals 0) or failed (return status not equals 0). The problem is that every time I run the ant program by a call to ant.bat