- From: Jo Rabin <jrabin@mtld.mobi>
- Date: Tue, 5 Jun 2007 15:46:01 +0100
- 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 UTC