forked from eclipse-jdt/eclipse.jdt.core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DRAFT] An idea how to restructure JDT core to get proper ecj bundle
The org.eclipse.jdt.core.ecj.validation was a "dummy" bundle so far, used only to validate compilation issues in IDE. That one should be renamed (org.eclipse.jdt.core.ecj.validation -> org.eclipse.jdt.core.ecj) and be a proper maven library. It is actually the ecj compiler library without any dependencies, that could be consumed by JDT and the rest of the world. It must be required and re-exported by JDT core. Unfortunately, there are two split packages: org.eclipse.jdt.internal.compiler org.eclipse.jdt.internal.compiler.parser Not sure what's the best way to deal with it, may be rename those smaller packages in in jdt.core to avoid split packages issue, they are internal, so it shouldn't break many clients (but most likely will, like Xtext), but I haven't tried it and don't know if they use package protected API. org.eclipse.jdt.compiler.apt and org.eclipse.jdt.compiler.tool were fragments of jdt.core, now they would be fragments of org.eclipse.jdt.core.ecj, but this is problematic. This breaks tests/clients that required jdt.core before, it seems that by re-exporting the ecj host API, jdt core doesn't re-export the fragments of ecj. Not sure why both fragments were fragments before, might be we could just put them into the ecj bundle directly. So now rg.eclipse.jdt.compiler.apt and org.eclipse.jdt.compiler.tool are just bundles. We could merge them together into ecj, I honestly don't know why they were fragments. What I did NOT tried is to re-write all the magic scripts that build and package separated ecj library out of jdt.core. But this is just an idea how the "real ecj" could look like. See - eclipse-jdt#181 - eclipse-platform/eclipse.platform.ua#18
- Loading branch information
1 parent
71f50dd
commit 22919be
Showing
8 changed files
with
182 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<component id="org.eclipse.jdt.compiler.tool" version="2"> | ||
<resource path="META-INF/MANIFEST.MF"> | ||
<filter id="924844039"> | ||
<message_arguments> | ||
<message_argument value="1.3.150"/> | ||
<message_argument value="1.3.150"/> | ||
</message_arguments> | ||
</filter> | ||
</resource> | ||
<resource path="src/org/eclipse/jdt/internal/compiler/batch/ClasspathJsr199.java" type="org.eclipse.jdt.internal.compiler.batch.ClasspathJsr199"> | ||
<filter id="1110441988"> | ||
<message_arguments> | ||
<message_argument value="org.eclipse.jdt.internal.compiler.batch.ClasspathJsr199"/> | ||
</message_arguments> | ||
</filter> | ||
</resource> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Manifest-Version: 1.0 | ||
Bundle-ManifestVersion: 2 | ||
Bundle-Name: Ecj | ||
Bundle-SymbolicName: org.eclipse.jdt.core.ecj.validation;singleton:=true | ||
Bundle-Version: 1.0.0.qualifier | ||
Automatic-Module-Name: org.eclipse.jdt.ecj | ||
Bundle-RequiredExecutionEnvironment: JavaSE-11 | ||
Export-Package: org.eclipse.jdt.core.compiler, | ||
org.eclipse.jdt.core.compiler.batch, | ||
org.eclipse.jdt.internal.compiler, | ||
org.eclipse.jdt.internal.compiler.ast, | ||
org.eclipse.jdt.internal.compiler.batch, | ||
org.eclipse.jdt.internal.compiler.classfmt, | ||
org.eclipse.jdt.internal.compiler.codegen, | ||
org.eclipse.jdt.internal.compiler.env, | ||
org.eclipse.jdt.internal.compiler.flow, | ||
org.eclipse.jdt.internal.compiler.impl, | ||
org.eclipse.jdt.internal.compiler.lookup, | ||
org.eclipse.jdt.internal.compiler.parser, | ||
org.eclipse.jdt.internal.compiler.parser.diagnose, | ||
org.eclipse.jdt.internal.compiler.problem, | ||
org.eclipse.jdt.internal.compiler.util | ||
Bundle-ActivationPolicy: lazy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters