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 18154] New: - P4HandlerAdapter can throw exceptions that should be build exceptions
Date Wed, 19 Mar 2003 18:23:56 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=18154>.
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=18154

P4HandlerAdapter can throw exceptions that should be build exceptions

           Summary: P4HandlerAdapter can throw exceptions that should be
                    build exceptions
           Product: Ant
           Version: 1.5.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: matt@thebishops.org


If one runs perforce tasks against a disconnected server, the exceptions that
are thrown in the thread that tries to communicate with this unavailable server
throw exceptions that are not handled by Ant.

This is especially painful in an integrated IDE ant feature, as the exception
cannot be handled gracefully as a BuildException.  The fix is simply to move the
creation of the input reader in P4HandlerAdaptor into the try block just below it.

Patch is forthcoming.

Mime
View raw message