I would be interested in the results ...
Kind regards,
Peter Kriens
MG> Thanks Jeff, that's a good idea. I'll have a good look at the eclipse
compiler.
MG> I'm investigating the possibility of porting an existing
MG> application which uses javac into the OSGi world. It does some on
MG> the fly code generation and compilation of individual classes for
MG> optimisation purposes. As it's a third party product I'm keen to
MG> know if it can be done without a lot of change.
MG> Cheers
MG> MikeG
MG> On 01/08/07, Jeff McAffer <[EMAIL PROTECTED]> wrote:
MG>
MG> For what its worth, we use Eclipse Compiler for Java (ecj) all
MG> the time inside Eclipse. Look for ecj.jar on the Eclipse SDK
MG> download site. It comes as a bundle and has some tacit API that
MG> Tomcat, GCJ and others use. If you are on Java 6 is also supplies
MG> implementations of JSR199 and 269. Also, there is a whack of code
MG> in/around Eclipse that will compute classpaths based on existing bundles.
MG>
MG> HTH
MG> Jeff
MG>
MG>
MG>
MG> "Mike Gould" <[EMAIL PROTECTED]>
MG> Sent by: [EMAIL PROTECTED]
MG> 08/01/2007 07:06 AM
MG>
MG> Please respond to
MG> [EMAIL PROTECTED]; Please respond to
MG> OSGi Developer Mail List <[email protected]>
MG>
MG>
MG> To
MG> [email protected]
MG> cc
MG>
MG>
MG> Subject
MG> [osgi-dev] calling javac/JavaCompilerTool within OSGi
MG>
MG>
MG>
MG>
MG>
MG> Hi,
MG> I'm trying to compile some java code from within an OSGi
MG> environment using sun.tools.javac but I haven't had much success.
MG> Does anyone have any experience with this? In particular how to
MG> set up the classpath when the required resources are in bundles?
MG>
MG> Also does the new JavaCompilerTool in java 6 offer any improvement?
MG>
MG> Many Thanks
MG> --
MG> - MikeG _______________________________________________
MG> OSGi Developer Mail List
MG> [email protected]
MG> http://www2.osgi.org/mailman/listinfo/osgi-dev
--
Peter Kriens Tel +33467542167
9C, Avenue St. Drézéry AOL,Yahoo: pkriens
34160 Beaulieu, France ICQ 255570717
Skype pkriens Fax +1 8153772599
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev