You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/13 07:10:38 UTC
DO NOT REPLY [Bug 30642] New: -
XMLCatalog fails to resolve entities when the project's base directory path contains spaces.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30642>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30642
XMLCatalog fails to resolve entities when the project's base directory path contains spaces.
Summary: XMLCatalog fails to resolve entities when the project's
base directory path contains spaces.
Product: Ant
Version: 1.7Alpha (nightly)
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Other
Component: Core
AssignedTo: dev@ant.apache.org
ReportedBy: kgreiner@xpediantsolutions.com
I got this error running the test cases.
[junit] Testcase:
testAbsolutePath(org.apache.tools.ant.types.XMLCatalogTest): FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at junit.framework.Assert.assertNotNull(Assert.java:220)
[junit] at junit.framework.Assert.assertNotNull(Assert.java:213)
[junit] at
org.apache.tools.ant.types.XMLCatalogTest.testAbsolutePath(XMLCatalogTest.java:217)
...
I debugged the code and traced the problem back how XMLCatalog converts a file
URL into a file path. It fails to decode %20 sequences into spaces so the file
exists test fails and filesystemLookup returns null.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org