< prev index next >
test/tools/javac/classfiles/attributes/Module/ModuleTestBase.java
Print this page
@@ -33,10 +33,11 @@
import java.lang.reflect.Method;
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;
import java.util.Map;
import java.util.regex.Pattern;
@@ -125,12 +126,13 @@
actualProvides.add(Pair.of(provides, with));
}
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();
}
< prev index next >