Re: ChromeJarResourceLoader and winXP jdk142 and webstart
Gerald Bauer <[email protected]> Thu, 2 Oct 2003 10:51:59 -0700 (PDT)
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ross,
> Again, I don't knwo which caramel you are using, but
> these are two
> possibly relevent fixes I needed to make in Feb.
>
> diff -rub
> caramel-1.0-b1/src/caramel/util/ClassUtils.java
> caramel/src/caramel/util/ClassUtils.java
> --- caramel-1.0-b1/src/caramel/util/ClassUtils.java
> Sun Dec 8 17:25:56 2002+++
> caramel/src/caramel/util/ClassUtils.java Sun Feb
> 16 16:41:53 2003
> @@ -46,9 +46,15 @@
>
> T.debug( "jarUrlString=" + jarUrlString );
>
> - int from = "jar:file:".length();
> + if (jarUrlString.startsWith("jar:file:"))
> + jarUrlString =
> jarUrlString.substring("jar:file:".length());
> + if (jarUrlString.startsWith("jar:"))
> + jarUrlString =
> jarUrlString.substring("jar:".length());
> +
> int to = jarUrlString.indexOf( "!/" );
> + if (0 <= to)
> + jarUrlString.substring( 0, to );
>
> - return jarUrlString.substring( from, to );
> + return jarUrlString;
> }
> }
> diff -rub
> caramel-1.0-b1/src/caramel/util/HtmlOutputter.java
> caramel/src/caramel/util/HtmlOutputter.java
> ---
> caramel-1.0-b1/src/caramel/util/HtmlOutputter.java
> Sun Dec 8 17:25:56 2002+++
> caramel/src/caramel/util/HtmlOutputter.java Sat Feb
> 15 20:29:39 2003
> @@ -66,6 +66,8 @@
> // ignore comments
> else if( obj instanceof String )
> out.write( ( String ) obj );
> + else if( obj instanceof Text )
> + out.write( ((Text) obj).getText() );
> else if( obj instanceof Element )
> outputElement( ( Element ) obj, out );
> else if( obj instanceof EntityRef )
Since the caramel source is now in the sourceforge
CVS repository I would appreciate if you can resend
your patch so I can check it and add your fixes.
Also if you bundle/zip up your Luxor example with a
short readme I'm more than happy to add it to the
Luxor contrib download page @
http://sourceforge.net/project/showfiles.php?group_id=64067
- Gerald
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf