mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -35,6 +35,7 @@ import java.nio.file.Files;
|
|||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
@ -127,8 +128,9 @@ public class ModuleTestBase {
|
|||
tr.checkContains(actualProvides, moduleDescriptor.provides, "Lists of provides don't match");
|
||||
}
|
||||
|
||||
protected void compile(Path base) throws IOException {
|
||||
protected void compile(Path base, String... options) throws IOException {
|
||||
new JavacTask(tb)
|
||||
.options(options)
|
||||
.files(findJavaFiles(base))
|
||||
.run(Task.Expect.SUCCESS)
|
||||
.writeAll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue