OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Baptiste Gaillard
Hi, we are building a platform which allow to deploy and execute OSGI components. Those OSGI components are developed by our customers and we do not have control one those components. The application is a JEE one and is deployed inside JBoss AS, we also use an embedded Felix container. We ha

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Karl Pauls
On Fri, Oct 2, 2009 at 10:48 AM, Baptiste Gaillard wrote: > > Hi, we are building a platform which allow to deploy and execute OSGI > components. > > Those OSGI components are developed by our customers and we do not have > control one those components. > The application is a JEE one and is depl

RE: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Baptiste Gaillard
.path = fs.normalize(pathname); this.prefixLength = fs.prefixLength(this.path); } } Do you think something like that is feasible ? > Date: Fri, 2 Oct 2009 10:51:21 +0200 > Subject: Re: OSGI bootdelegation and java.io.File ? > From: karlpa...@gmail.com > To: users@fel

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Karl Pauls
.prefixLength(this.path); >    } > > } > > /** >  * SUN version of java.io.File >  */ > class File { > > > >    public File(String pathname) > >    { > >          this.path = fs.normalize(pathname); > >          this.prefixLength = fs.prefixLength(this.path); >

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Toni Menzel
is.prefixLength = fs.prefixLength(this.path); > >} > > > > } > > Do you think something like that is feasible ? > > > > > > Date: Fri, 2 Oct 2009 10:51:21 +0200 > > Subject: Re: OSGI bootdelegation and java.io.File ? > > From: karlpa...@

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Karl Pauls
fs.prefixLength(this.path); >>    } >> >> } >> >> /** >>  * SUN version of java.io.File >>  */ >> class File { >> >> >> >>    public File(String pathname) >> >>    { >> >>          this.path = fs.normalize(pathname); >

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Richard S. Hall
{ this.path = fs.normalize(pathname); this.prefixLength = fs.prefixLength(this.path); } } Do you think something like that is feasible ? Date: Fri, 2 Oct 2009 10:51:21 +0200 Subject: Re: OSGI bootdelegation and java.io.File ? From: karlpa...@gmail.com To: users@felix.ap

RE: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Baptiste Gaillard
Ok, so I think the best solution in this case is to write a guide and explain what to do and not to do to make the components compatible with our platform. Thanks a lot, Baptiste > Date: Fri, 2 Oct 2009 11:26:08 +0200 > Subject: Re: OSGI bootdelegation and java.io.File ? >

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Felix Meschberger
t; */ > class File { > > > > public File(String pathname) > > { > > this.path = fs.normalize(pathname); > > this.prefixLength = fs.prefixLength(this.path); > > } > > > > } > > Do you think something like t

RE: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Baptiste Gaillard
he boot class path but the 'java.io.File' class to developp will be very compilcated. Thanks, Baptiste > Date: Fri, 2 Oct 2009 11:34:13 +0200 > From: he...@ungoverned.org > To: users@felix.apache.org > Subject: Re: OSGI bootdelegation and java.io.File ? >

RE: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Baptiste Gaillard
change it to an absolute one using BundleContext.getDataFile(String) But I don't know how to do that, perhaps it's not possible... > Date: Fri, 2 Oct 2009 11:40:05 +0200 > From: fmesc...@gmail.com > To: users@felix.apache.org > Subject: Re: OSGI bootdelegation and

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Karl Pauls
ut it will not be super easy... regards, Karl > >> Date: Fri, 2 Oct 2009 11:40:05 +0200 >> From: fmesc...@gmail.com >> To: users@felix.apache.org >> Subject: Re: OSGI bootdelegation and java.io.File ? >> >> Hi, >> >> Besides that probably not work

Re: OSGI bootdelegation and java.io.File ?

2009-10-02 Thread Stuart McCulloch
ts onto the cloud, where you don't always have access to the raw file-system. The File API is good for quick prototyping, but these days I mostly try to abstract it beneath a general resource API. -- Cheers, Stuart Thanks, > > Baptiste > > > Date: Fri, 2 Oct 2009 11