Little more research...
Looking at
http://www-128.ibm.com/developerworks/opensource/library/os-ast/?ca=dgr-lnxw97ASTParserit
shouldn't be too hard to write a wrapper that takes a
string/file/whatever and returns a class object. Looks like the compiler
will simply use the existing classloaders' classpath which makes most of the
pain go away.
Unfortunately this software is not in any way related to OSGi so adding a
dependency on eclipse to support one particular deployment won't make it to
the main stream. Any way of portably using javac would be preferable.

Mike

On 02/08/07, Peter Kriens <[EMAIL PROTECTED]> wrote:
>
> 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
>
>
>
>
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to