ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional XMLValidateTask.java
Date Mon, 02 Aug 2004 22:44:17 GMT
stevel      2004/08/02 15:44:17

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        XMLValidateTask.java
  Log:
  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.
  
  Revision  Changes    Path
  1.42      +2 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java
  
  Index: XMLValidateTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- XMLValidateTask.java	2 Jun 2004 20:32:11 -0000	1.41
  +++ XMLValidateTask.java	2 Aug 2004 22:44:17 -0000	1.42
  @@ -391,7 +391,7 @@
        */
       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 @@
               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);
  
  
  

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


Mime
View raw message