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/05 17:34:03 UTC
DO NOT REPLY [Bug 30492] New: -
org.apache.tools.ant.loader.AntClassLoader.getResource() returns wrong URL
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=30492>.
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=30492
org.apache.tools.ant.loader.AntClassLoader.getResource() returns wrong URL
Summary: org.apache.tools.ant.loader.AntClassLoader.getResource()
returns wrong URL
Product: Ant
Version: 1.6.1
Platform: All
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Core
AssignedTo: dev@ant.apache.org
ReportedBy: mark.brouwer@virgil.nl
In case one tries to obtain the URL to a class in a jar file on Windows the
returned URL is not a valid URL
URL jarURL =
getClass().getClassLoader().getResource("org/cheiron/test/Bootstrap.class");
return the following URL
jar:file:P:\workspace\cheiron\tools\jini\lib\cheiron-test.jar!/org/cheiron/test/Bootstrap.class
The file URL is invalid in the jar URL
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org