I've been pushing the notion of source bundles to the "powers that be" to no 
avail...

Here's a demo (windoze only ATT):

http://www.box.net/shared/4jssc5r69c

Let the framework do the build, as it should... after all, the framework IS the 
convention...

You would simply generate the java, zip it / jar it, and "install" it...

Regards



From: charbel el_kaed
Sent: Wed 5/12/2010 7:29 AM
To: [email protected]; [email protected]
Subject: Maven compile and install on runtime‏‏‏


Hi, 

I would like to know if I can do the following with the 
maven bundle plugin.

I am generating Java code on the fly and I 
would like to compile it and package it in a OSGi-bundle/Jar so another 
bundle can start it on the fly.

First I tried using Janino and 
took a look on Jasper but then I figure out, that I should reference all
 the classpath of dependent packages while compiling and then I have to 
write the manifest manually so it can be an OSGi/Jar.

I usually 
use maven to build my OSGi bundles, so I thought of using maven to do 
so.
So typically I would write a Complier_bundle with a function 
Public


 JarLocation Compile ( File pom, Path location_of_source)
which will 
compile my sources based on a pom.xml and a location of the sources and 
would return JarLocation that I can pass it to another bundle to start 
the generated bundle.

Anybody has tried to do this? Is there any 
documentation on how to do it ?

Thanks and Regards,
Charbel.                                          
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969

Reply via email to