ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6747] New: - Ant can fail but still exit with 0
Date Wed, 27 Feb 2002 20:55:37 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6747>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6747

Ant can fail but still exit with 0

           Summary: Ant can fail but still exit with 0
           Product: Ant
           Version: 1.4.1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: andrew@cadre5.com


In my specific case, when I have an invalid JAVA_HOME set, ant dies with the 
following message:
   Error: JAVA_HOME is not defined correctly.
   We cannot execute /blah/bin/java

However, the exit status of ant is still 0.  My script therefore believes that 
ant completed successfully, and continues on to blow up later.  Since ant did 
fail, it should return a non-zero exit status.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message