You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/01/24 16:25:58 UTC

DO NOT REPLY [Bug 33220] New: - Optional RPM task succeeds even if RPM process fails

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33220>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33220

           Summary: Optional RPM task succeeds even if RPM process fails
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: Linux
            Status: NEW
          Keywords: ErrorMessage
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: julian.simpson@thoughtworks.com


When making RPM's with the Ant task, the 'rpm' or 'rpmbuild' executables that get called by the rpm 
task can fail (because of errors in the spec file, for example), exit with a non-zero return code, and not 
break the build.  This is because the return code from the rpm executable isn't examined by the task.

I tested this with Ant 1.6.1 and 1.62 on debian linux, as well as ant 1.6.1 on Solaris 8 (with rpm 
installed locally).

I will attempt to post a patch.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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