From c876b58d285c79750b3de038141449545ad2904e Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 2 Aug 2004 22:44:17 +0000 Subject: [PATCH] A couple extra traces in the log for xml validate. I wonder if we should include the full exception text on a parse failure, as it is often useful. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276741 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/taskdefs/optional/XMLValidateTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java index 9c347de01..092e7685d 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java @@ -391,7 +391,7 @@ public class XMLValidateTask extends Task { */ private void setFeature(String feature, boolean value) throws BuildException { - + log("Setting feature "+feature+"="+value,Project.MSG_DEBUG); try { xmlReader.setFeature(feature, value); } catch (SAXNotRecognizedException e) { @@ -459,6 +459,7 @@ public class XMLValidateTask extends Task { is.setSystemId(uri); xmlReader.parse(is); } catch (SAXException ex) { + log("Caught when validating: "+ex.toString(),Project.MSG_DEBUG); if (failOnError) { throw new BuildException( "Could not validate document " + afile);