Discussions around the JDT compiler

3 views
Skip to first unread message

Antoine Toulme

unread,
Dec 15, 2008, 9:42:06 AM12/15/08
to buildr4...@googlegroups.com
I see an immediate problem to deal with the jdt compiler. I think we need to be even more modular, and create a separate gem that would install the compiler, and pass arguments as appropriate.

Ketan, you are telling me this:
The JDT compiler relies heavily on the context classloader, it can build plugins only if it sits within an eclipse instance (I think). As such making a jdtc may not help much.

I'm not sure about that, from the way ant builds with it. It seems like it needs to have its classloader fully set, ie, it needs to have the right plugins be placed in its classpath to compile the code.

The compiler itself is completely independent from Eclipse, here is its manifest as copied from the jar downloaded for 3.5M4:

Manifest-Version: 1.0
Main-Class: org.eclipse.jdt.internal.compiler.batch.Main
Bundle-ManifestVersion: 2
Bundle-Name: Eclipse Compiler for Java
Bundle-SymbolicName: org.eclipse.jdt.core.compiler.batch
Bundle-Version: 3.3.0
Bundle-ClassPath: .
Bundle-Vendor: Eclipse.org
Bundle-Localization: plugin
Export-Package: org.eclipse.jdt.core,
 org.eclipse.jdt.core.compiler,
 org.eclipse.jdt.internal.antadapter;x-internal:=true,
 org.eclipse.jdt.internal.compiler;x-internal:=true,
 org.eclipse.jdt.internal.compiler.ast;x-internal:=true,
 org.eclipse.jdt.internal.compiler.batch;x-internal:=true,
 org.eclipse.jdt.internal.compiler.classfmt;x-internal:=true,
 org.eclipse.jdt.internal.compiler.codegen;x-internal:=true,
 org.eclipse.jdt.internal.compiler.env;x-internal:=true,
 org.eclipse.jdt.internal.compiler.flow;x-internal:=true,
 org.eclipse.jdt.internal.compiler.impl;x-internal:=true,
 org.eclipse.jdt.internal.compiler.lookup;x-internal:=true,
 org.eclipse.jdt.internal.compiler.parser;x-internal:=true,
 org.eclipse.jdt.internal.compiler.parser.diagnose;x-internal:=true,
 org.eclipse.jdt.internal.compiler.problem;x-internal:=true,
 org.eclipse.jdt.internal.compiler.util;x-internal:=true

Antoine

--
http://www.lunar-ocean.com/blog
Reply all
Reply to author
Forward
0 new messages