-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Run tests against javac bits #3167
base: master
Are you sure you want to change the base?
Conversation
046db5d
to
db2819f
Compare
I got the tests running in https://ci.eclipse.org/ls/job/jdt-ls-javac/ |
ea04e38
to
46fe57f
Compare
182472f
to
7ff2b84
Compare
Bundle-RequiredExecutionEnvironment: JavaSE-23 | ||
Import-Package: org.osgi.framework;version="1.3.0", | ||
org.eclipse.jdt.internal.javac, | ||
org.eclipse.jdt.internal.javac.dom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of tweaking the MANIFEST.MF, you can consider adding the javac bundle as extraRequirement
with target-platform-configuration
block in the pom.xml. This bit of customization could also be encapsulated in the javac
profile, so it can be easier to merge later.
7ff2b84
to
72443c7
Compare
pom.xml
Outdated
<profile> | ||
<id>javac</id> | ||
<properties> | ||
<tycho.testArgLine>--add-opens jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED -DICompilationUnitResolver=org.eclipse.jdt.core.dom.JavacCompilationUnitResolver -DCompilationUnit.DOM_BASED_OPERATIONS=true -DAbstractImageBuilder.compiler=org.eclipse.jdt.internal.javac.JavacCompiler</tycho.testArgLine> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This now also needs
--add-opens jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.taglets.snippet=ALL-UNNAMED --add-opens jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.taglets=ALL-UNNAMED
<compilerArgs combine.self="override"> | ||
<arg>--add-exports</arg> | ||
<arg>java.base/java.lang=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> | ||
<arg>--add-exports</arg> | ||
<arg>jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> | ||
</compilerArgs> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might possibly be removed
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Signed-off-by: Fred Bricon <fbricon@gmail.com>
Signed-off-by: Fred Bricon <fbricon@gmail.com>
72443c7
to
b2bc078
Compare
The idea is to run
But for some reason I run into:
@akurtakov @mickaelistria what am I missing?