You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Felix Cuadrado <fc...@dit.upm.es> on 2006/12/18 19:05:52 UTC

Launch Felix with PDE

Hi all,

To celebrate the recent public release of Apache Felix I have released an 
adaptation of eLuzien that works with the new functionality coming in Eclipse 
3.3. This version adds Felix launch support to the standard PDE launch 
configuration. The plugin requires Eclipse 3.3 (tested with 3.3M4), and can 
be downloaded at:
http://forge.os4os.org/frs/shownotes.php?release_id=59

To install it just unzip the file in your Eclipse folder. Feel free to try it 
and tell me what you think :)

Best regards,
FĂ©lix

P.S. For more information see the release notes of the file and the bug opened 
at the Eclipse bugzila:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=152315





Re: Launch Felix with PDE

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Jeff McAffer wrote:
> Just for a point of reference, what some of the folks in the Spring OSGi 
> world have been doing is just putting the "bin" (whatever) dirs on the 
> Bundle-Classpath in the manifest.  That works at dev time and at regular 
> runtime that dir does not exist.  This is basically a hack equivalent of 
> the dev classpath support we have talked about in the past. Implementing 
> the dev classpath support is not that complex so I would go that route.
>   

Yeah, I forgot about that "trick"...

-> richard
> Jeff
>
>
>
>
> Thomas Watson <tj...@us.ibm.com> 
> 12/19/2006 12:09 AM
> Please respond to
> felix-dev@incubator.apache.org
>
>
> To
> felix-dev@incubator.apache.org
> cc
>
> Subject
> Re: Launch Felix with PDE
>
>
>
>
>
>
> "Richard S. Hall" <he...@ungoverned.org> wrote on 12/18/2006 02:01:34 PM:
>
>   
>> Reading your issue about slow start up due to having to create bundle 
>> JAR files...I think this can be partially avoided by doing install by 
>> reference (i.e., "reference:"); however, as I understand it, this would 
>> require that you structure your project a little differently, such as 
>> having your classes compiled into the root or something (Tom might be 
>> able to explain).
>>     
>
> Without dev classpath support in the framework you need to place all you 
> source and output folders at the root of your projects.  Then you should 
> be able to use a reference: URL to install the project directory as a 
> bundle.  This only works because the root of the project will look like 
> a bundle to the framework with the META-INF/MANIFEST.MF and .class files
> located directly from your project directory.  Another limitation is 
> you must only put '.' on your Bundle-ClassPath (or do not 
> define a Bundle-ClassPath since this is the default).
>
> HTH
>
> Tom
>
>   
>> There was some discussion about getting Felix to support a 
>> development-time class path, but this hasn't been prioritized yet. See:
>>
>>     http://issues.apache.org/jira/browse/FELIX-136
>>
>> -> richard
>>
>>     
>
>
>   

Re: Launch Felix with PDE

Posted by Jeff McAffer <Je...@ca.ibm.com>.
Just for a point of reference, what some of the folks in the Spring OSGi 
world have been doing is just putting the "bin" (whatever) dirs on the 
Bundle-Classpath in the manifest.  That works at dev time and at regular 
runtime that dir does not exist.  This is basically a hack equivalent of 
the dev classpath support we have talked about in the past. Implementing 
the dev classpath support is not that complex so I would go that route.

Jeff




Thomas Watson <tj...@us.ibm.com> 
12/19/2006 12:09 AM
Please respond to
felix-dev@incubator.apache.org


To
felix-dev@incubator.apache.org
cc

Subject
Re: Launch Felix with PDE






"Richard S. Hall" <he...@ungoverned.org> wrote on 12/18/2006 02:01:34 PM:

> Reading your issue about slow start up due to having to create bundle 
> JAR files...I think this can be partially avoided by doing install by 
> reference (i.e., "reference:"); however, as I understand it, this would 
> require that you structure your project a little differently, such as 
> having your classes compiled into the root or something (Tom might be 
> able to explain).

Without dev classpath support in the framework you need to place all you 
source and output folders at the root of your projects.  Then you should 
be able to use a reference: URL to install the project directory as a 
bundle.  This only works because the root of the project will look like 
a bundle to the framework with the META-INF/MANIFEST.MF and .class files
located directly from your project directory.  Another limitation is 
you must only put '.' on your Bundle-ClassPath (or do not 
define a Bundle-ClassPath since this is the default).

HTH

Tom

> 
> There was some discussion about getting Felix to support a 
> development-time class path, but this hasn't been prioritized yet. See:
> 
>     http://issues.apache.org/jira/browse/FELIX-136
> 
> -> richard
> 


Re: Launch Felix with PDE

Posted by Thomas Watson <tj...@us.ibm.com>.
"Richard S. Hall" <he...@ungoverned.org> wrote on 12/18/2006 02:01:34 PM:

> Reading your issue about slow start up due to having to create bundle 
> JAR files...I think this can be partially avoided by doing install by 
> reference (i.e., "reference:"); however, as I understand it, this would 
> require that you structure your project a little differently, such as 
> having your classes compiled into the root or something (Tom might be 
> able to explain).

Without dev classpath support in the framework you need to place all you 
source and output folders at the root of your projects.  Then you should 
be able to use a reference: URL to install the project directory as a 
bundle.  This only works because the root of the project will look like 
a bundle to the framework with the META-INF/MANIFEST.MF and .class files
located directly from your project directory.  Another limitation is 
you must only put '.' on your Bundle-ClassPath (or do not 
define a Bundle-ClassPath since this is the default).

HTH

Tom

> 
> There was some discussion about getting Felix to support a 
> development-time class path, but this hasn't been prioritized yet. See:
> 
>     http://issues.apache.org/jira/browse/FELIX-136
> 
> -> richard
> 

Re: Launch Felix with PDE

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Felix Cuadrado wrote:
> Hi all,
>
> To celebrate the recent public release of Apache Felix I have released an 
> adaptation of eLuzien that works with the new functionality coming in Eclipse 
> 3.3. This version adds Felix launch support to the standard PDE launch 
> configuration. The plugin requires Eclipse 3.3 (tested with 3.3M4), and can 
> be downloaded at:
> http://forge.os4os.org/frs/shownotes.php?release_id=59
>
> To install it just unzip the file in your Eclipse folder. Feel free to try it 
> and tell me what you think :)
>   

Sounds pretty cool. Thanks.

Reading your issue about slow start up due to having to create bundle 
JAR files...I think this can be partially avoided by doing install by 
reference (i.e., "reference:"); however, as I understand it, this would 
require that you structure your project a little differently, such as 
having your classes compiled into the root or something (Tom might be 
able to explain).

There was some discussion about getting Felix to support a 
development-time class path, but this hasn't been prioritized yet. See:

    http://issues.apache.org/jira/browse/FELIX-136

-> richard