mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8136930: Simplify use of module-system options by custom launchers
8160489: Multiple -Xpatch lines ignored by javac 8156998: javac should support new option -XinheritRuntimeEnvironment Reviewed-by: jlahoda, ksrini
This commit is contained in:
parent
3b80559162
commit
978417c4c7
161 changed files with 2421 additions and 1050 deletions
|
@ -111,11 +111,11 @@ public class RunCodingRules {
|
|||
Path crulesTarget = targetDir.resolve("crules");
|
||||
Files.createDirectories(crulesTarget);
|
||||
List<String> crulesOptions = Arrays.asList(
|
||||
"-XaddExports:jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
|
||||
"-XaddExports:jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
|
||||
"-XaddExports:jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
|
||||
"-XaddExports:jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
|
||||
"-XaddExports:jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
|
||||
"--add-exports", "jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
|
||||
"--add-exports", "jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
|
||||
"--add-exports", "jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED",
|
||||
"--add-exports", "jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
|
||||
"--add-exports", "jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
|
||||
"-d", crulesTarget.toString());
|
||||
javaCompiler.getTask(null, fm, noErrors, crulesOptions, null,
|
||||
fm.getJavaFileObjectsFromFiles(crulesFiles)).call();
|
||||
|
@ -178,7 +178,7 @@ public class RunCodingRules {
|
|||
|
||||
List<String> options = Arrays.asList(
|
||||
"-d", sourceTarget.toString(),
|
||||
"-modulesourcepath", mainSrcDir + FS + "*" + FS + "share" + FS + "classes" + PS
|
||||
"--module-source-path", mainSrcDir + FS + "*" + FS + "share" + FS + "classes" + PS
|
||||
+ genSrcTarget + FS + "*" + FS + "share" + FS + "classes",
|
||||
"-XDaccessInternalAPI",
|
||||
"-processorpath", processorPath,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue