ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1151509 - /ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportParser.java
Date Wed, 27 Jul 2011 15:56:27 GMT
Author: hibou
Date: Wed Jul 27 15:56:26 2011
New Revision: 1151509

URL: http://svn.apache.org/viewvc?rev=1151509&view=rev
Log:
Expose that a resolve report has some errors

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportParser.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportParser.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportParser.java?rev=1151509&r1=1151508&r2=1151509&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportParser.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/report/XmlReportParser.java Wed Jul
27 15:56:26 2011
@@ -84,8 +84,10 @@ public class XmlReportParser {
                     // in which case, we put it at the last position
                     String pos = attributes.getValue("position");
                     position = pos == null ? getMaxPos() + 1 : Integer.valueOf(pos).intValue();
-                    if (attributes.getValue("error") != null
-                            || attributes.getValue("evicted") != null) {
+                    if (attributes.getValue("error") != null) {
+                        hasError = true;
+                        skip = true;
+                    } else if (attributes.getValue("evicted") != null) {
                         skip = true;
                     } else {
                         revisionsMap.put(new Integer(position), revisionArtifacts);
@@ -243,6 +245,8 @@ public class XmlReportParser {
 
         private File report;
 
+        private boolean hasError = false;
+        
         SaxXmlReportParser(File report) {
             artifacts = new ArrayList();
             artifactReports = new ArrayList();
@@ -336,4 +340,8 @@ public class XmlReportParser {
     public ModuleRevisionId getResolvedModule() {
         return parser.getResolvedModule();
     }
+
+    public boolean hasError() {
+        return parser.hasError;
+    }
 }



Mime
View raw message