Browse Source

linelength

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277953 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
851af8e868
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/main/org/apache/tools/ant/types/XMLCatalog.java

+ 4
- 2
src/main/org/apache/tools/ant/types/XMLCatalog.java View File

@@ -660,7 +660,8 @@ public class XMLCatalog extends DataType
try {
url = new URL(baseURL, uri);
} catch (MalformedURLException ex) {
// this processing is useful under Windows when the location of the DTD has been given as an absolute path
// this processing is useful under Windows when the location of the DTD
// has been given as an absolute path
// see Bugzilla Report 23913
File testFile = new File(uri);
if (testFile.exists() && testFile.canRead()) {
@@ -669,7 +670,8 @@ public class XMLCatalog extends DataType
try {
url = FILE_UTILS.getFileURL(testFile);
} catch (MalformedURLException ex1) {
throw new BuildException("could not find an URL for :" + testFile.getAbsolutePath());
throw new BuildException(
"could not find an URL for :" + testFile.getAbsolutePath());
}
} else {
log("uri : '"


Loading…
Cancel
Save