W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > June 2007

RE: Call tomorrow?

From: Jo Rabin <jrabin@mtld.mobi>
Date: Tue, 5 Jun 2007 15:46:01 +0100
Message-ID: <C8FFD98530207F40BD8D2CAD608B50B43369B4@mtldsvr01.DotMobi.local>
To: "Sean Owen" <srowen@google.com>, <public-mobileok-checker@w3.org>

I probably don't understand the problem, but can't you do

this.getClass().getClassLoader().getResourceAsStream("whatever");

> -----Original Message-----
> From: public-mobileok-checker-request@w3.org [mailto:public-mobileok-
> checker-request@w3.org] On Behalf Of Sean Owen
> Sent: 05 June 2007 15:21
> To: public-mobileok-checker@w3.org
> Subject: Re: Call tomorrow?
> 
> 
> Wow, this is a bit of a mess. The best solution I can see so far is to
> package all stylesheets into a .zip file, include that in the .jar,
> then retrieve and unpack it to a temp directory at startup. I'd be
> happy to hear better ideas before I finish off this pile of hackery
> and commit it.
> 
> On 6/5/07, Sean Owen <srowen@google.com> wrote:
> > This still doesn't work unfortunately, since the files still won't
be
> > found within a JAR on the classpath no matter where they are in the
> > JAR. Hmm I don't think there's a good way to do this, after reading
on
> > the internet for a while.
> >
> > My best solution so far is to copy the stylesheets out to a temp
> > directory at startup and execute the stylesheets from there. Kind of
> > hacky, but I think it would work.
Received on Tuesday, 5 June 2007 14:46:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:13:03 GMT