[cp-patches] FYI: flatten jar path in Jar URLs

Mark Wielaard mark at klomp.org
Tue Nov 7 23:42:09 UTC 2006


Hi,

When combining jar urls people might use relative paths using .., but
jar files don't handle paths using .. (or .) so we need to flatten it
beforehand. This patch does that.

    2006-11-07  Mark Wielaard  <mark at klomp.org>
        
    * gnu/java/net/protocol/jar/Handler.java (parseURL): Flatten jar
    path.
    (flat): New method.

This also makes the HTMLDemo work out of the box from the examples.zip.
That is a nice Demo so try it out! :)
jamvm -cp examples/examples.zip gnu.classpath.examples.swing.HtmlDemo

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jar-Handler-flat.patch
Type: text/x-patch
Size: 2484 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20061108/946fe09d/jar-Handler-flat.bin


More information about the Classpath-patches mailing list