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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to