See: 

Class: org.apache.felix.framework.Felix 

function: createBundleInfo

 

I went through the code and apparently the framework seeks the manifest file
under META-INF/MANIFEST.MF inside a jar file.

It actually fails because it eventually performs JarFile.getJarEntry("").

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Peter Neubauer
Sent: Tuesday, April 10, 2007 12:38 PM
To: felix-dev@incubator.apache.org
Subject: Re: Must a bundle be in a Jar file?

 

Asaf,

it is possible to have the classfiles just in a folder inside the

bundle. in that case, just add an entry to that folder to the bundle

classpath.

 

structure:

 

mybundle

  META-INF

      MANIFEST.MF

  target

     classes

         test

            MyClass.class

 

Would require an entry like

 

Bundle-ClassPath: target/classes

 

In the MANIFEST.MF.

 

/peter

 

On 4/10/07, asaf.lahav <[EMAIL PROTECTED]> wrote:

> It would be easier to debug a bundle if it wouldn't be required to be
closed

> as a jar file.

> 

> Is it possible to create a bundle from class files that are not in a *.jar

> file?

> 

> 

> 

> 

> 

> 

> 

> 

Reply via email to