Browse Source

Typo fix

PR: 5029

Submitted by:  Jesse Glick "jesse.glick@netbeans.com"


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270000 13f79535-47bb-0310-9956-ffa450edef68
master
Magesh Umasankar 23 years ago
parent
commit
3c83a07344
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java

+ 5
- 5
src/main/org/apache/tools/ant/taskdefs/optional/XMLValidateTask.java View File

@@ -97,7 +97,7 @@ public class XMLValidateTask extends Task {
// The crimson implementation is shipped with ant. // The crimson implementation is shipped with ant.
public static String DEFAULT_XML_READER_CLASSNAME= "org.apache.crimson.parser.XMLReaderImpl"; public static String DEFAULT_XML_READER_CLASSNAME= "org.apache.crimson.parser.XMLReaderImpl";


protected static String INIT_FAILED_MSG = "Could'nt start xml validation: ";
protected static String INIT_FAILED_MSG = "Could not start xml validation: ";


// ant task properties // ant task properties
// defaults // defaults
@@ -358,13 +358,13 @@ public class XMLValidateTask extends Task {
toReturn = true; toReturn = true;
} catch (SAXNotRecognizedException e) { } catch (SAXNotRecognizedException e) {
if (warn) if (warn)
log("Could'nt set feature '"
log("Could not set feature '"
+ feature + feature
+ "' because the parser doesn't recognize it", + "' because the parser doesn't recognize it",
Project.MSG_WARN); Project.MSG_WARN);
} catch (SAXNotSupportedException e) { } catch (SAXNotSupportedException e) {
if (warn) if (warn)
log("Could'nt set feature '"
log("Could not set feature '"
+ feature + feature
+ "' because the parser doesn't support it", + "' because the parser doesn't support it",
Project.MSG_WARN); Project.MSG_WARN);
@@ -388,9 +388,9 @@ public class XMLValidateTask extends Task {
xmlReader.parse(is); xmlReader.parse(is);
} catch (SAXException ex) { } catch (SAXException ex) {
if (failOnError) if (failOnError)
throw new BuildException("Could'nt validate document " + afile);
throw new BuildException("Could not validate document " + afile);
} catch (IOException ex) { } catch (IOException ex) {
throw new BuildException("Could'nt validate document " + afile, ex);
throw new BuildException("Could not validate document " + afile, ex);
} }


if (errorHandler.getFailure()) { if (errorHandler.getFailure()) {


Loading…
Cancel
Save