ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30492] New: - org.apache.tools.ant.loader.AntClassLoader.getResource() returns wrong URL
Date Thu, 05 Aug 2004 15:34:03 GMT
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


Mime
View raw message