You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Ivan <xh...@gmail.com> on 2010/05/03 13:27:36 UTC
How to read an entry in an embbed jar file of the bundle
Hi,
Is there a simple way to read an entry in an embbed jar file of the
bundle ? For a bundle with the structure below :
/META-INF
a.jar
/META-INF/a.xml
What is the correct entry path for the a.xml file ?
Thanks !
--
Ivan
Re: How to read an entry in an embbed jar file of the bundle
Posted by Ivan <xh...@gmail.com>.
Yes, but seems that I need to do a full loop to check whether a resource
exists or not.
2010/5/3 Justin Edelson <ju...@gmail.com>
> I believe you need to get an InputStream for a.jar, wrap it in a
> JarInputStream and then find the file you're looking for.
>
> On Mon, May 3, 2010 at 7:27 AM, Ivan <xh...@gmail.com> wrote:
>
> > Hi,
> > Is there a simple way to read an entry in an embbed jar file of the
> > bundle ? For a bundle with the structure below :
> > /META-INF
> > a.jar
> > /META-INF/a.xml
> >
> > What is the correct entry path for the a.xml file ?
> > Thanks !
> > --
> > Ivan
> >
>
--
Ivan
Re: How to read an entry in an embbed jar file of the bundle
Posted by Ivan <xh...@gmail.com>.
Yes, but seems that I need to do a full loop to check whether a resource
exists or not.
2010/5/3 Justin Edelson <ju...@gmail.com>
> I believe you need to get an InputStream for a.jar, wrap it in a
> JarInputStream and then find the file you're looking for.
>
> On Mon, May 3, 2010 at 7:27 AM, Ivan <xh...@gmail.com> wrote:
>
> > Hi,
> > Is there a simple way to read an entry in an embbed jar file of the
> > bundle ? For a bundle with the structure below :
> > /META-INF
> > a.jar
> > /META-INF/a.xml
> >
> > What is the correct entry path for the a.xml file ?
> > Thanks !
> > --
> > Ivan
> >
>
--
Ivan
Re: How to read an entry in an embbed jar file of the bundle
Posted by Justin Edelson <ju...@gmail.com>.
I believe you need to get an InputStream for a.jar, wrap it in a
JarInputStream and then find the file you're looking for.
On Mon, May 3, 2010 at 7:27 AM, Ivan <xh...@gmail.com> wrote:
> Hi,
> Is there a simple way to read an entry in an embbed jar file of the
> bundle ? For a bundle with the structure below :
> /META-INF
> a.jar
> /META-INF/a.xml
>
> What is the correct entry path for the a.xml file ?
> Thanks !
> --
> Ivan
>
Re: How to read an entry in an embbed jar file of the bundle
Posted by Justin Edelson <ju...@gmail.com>.
I believe you need to get an InputStream for a.jar, wrap it in a
JarInputStream and then find the file you're looking for.
On Mon, May 3, 2010 at 7:27 AM, Ivan <xh...@gmail.com> wrote:
> Hi,
> Is there a simple way to read an entry in an embbed jar file of the
> bundle ? For a bundle with the structure below :
> /META-INF
> a.jar
> /META-INF/a.xml
>
> What is the correct entry path for the a.xml file ?
> Thanks !
> --
> Ivan
>