diff --git a/src/main/org/apache/tools/ant/types/XMLCatalog.java b/src/main/org/apache/tools/ant/types/XMLCatalog.java index 838f6bfb9..73dc9bff6 100644 --- a/src/main/org/apache/tools/ant/types/XMLCatalog.java +++ b/src/main/org/apache/tools/ant/types/XMLCatalog.java @@ -308,14 +308,14 @@ public class XMLCatalog extends DataType * if this is a reference and no nested elements are allowed. */ public Path createCatalogPath() { - if (isReference()) { - throw noChildrenAllowed(); - } - if (this.catalogPath == null) { - this.catalogPath = new Path(getProject()); - } - setChecked( false ); - return this.catalogPath.createPath(); + if (isReference()) { + throw noChildrenAllowed(); + } + if (this.catalogPath == null) { + this.catalogPath = new Path(getProject()); + } + setChecked( false ); + return this.catalogPath.createPath(); } /** @@ -837,7 +837,7 @@ public class XMLCatalog extends DataType public InternalResolver() { log("Apache resolver library not found, internal resolver will be used", - Project.MSG_INFO); + Project.MSG_VERBOSE); } public InputSource resolveEntity(String publicId, @@ -979,7 +979,7 @@ public class XMLCatalog extends DataType } log("Apache resolver library found, xml-commons resolver will be used", - Project.MSG_INFO); + Project.MSG_VERBOSE); } public InputSource resolveEntity(String publicId, diff --git a/src/testcases/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java b/src/testcases/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java index cbbd15e30..6a7ddaf2b 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/optional/XmlValidateTest.java @@ -129,7 +129,7 @@ public class XmlValidateTest extends BuildFileTest { * entity */ public void testXmlCatalogFiles() { - executeTarget("xmlcatalogfiles"); + executeTarget("xmlcatalogfiles"); } /** @@ -140,7 +140,7 @@ public class XmlValidateTest extends BuildFileTest { * dtd with the same entity */ public void testXmlCatalogPath() { - executeTarget("xmlcatalogpath"); + executeTarget("xmlcatalogpath"); } /**