Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B40096597 for ; Wed, 27 Jul 2011 15:56:49 +0000 (UTC) Received: (qmail 87910 invoked by uid 500); 27 Jul 2011 15:56:49 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 87885 invoked by uid 500); 27 Jul 2011 15:56:49 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 87878 invoked by uid 99); 27 Jul 2011 15:56:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 15:56:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 15:56:47 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9B15323889BB for ; Wed, 27 Jul 2011 15:56:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: notifications@ant.apache.org From: hibou@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110727155627.9B15323889BB@eris.apache.org> 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; + } }