equal
deleted
inserted
replaced
37 * @run main/othervm -verbose:gc -Xmx1g JLink2Test |
37 * @run main/othervm -verbose:gc -Xmx1g JLink2Test |
38 */ |
38 */ |
39 import java.io.File; |
39 import java.io.File; |
40 import java.io.FileOutputStream; |
40 import java.io.FileOutputStream; |
41 import java.io.IOException; |
41 import java.io.IOException; |
42 import java.lang.reflect.Layer; |
|
43 import java.nio.file.Files; |
42 import java.nio.file.Files; |
44 import java.nio.file.Path; |
43 import java.nio.file.Path; |
45 import java.util.ArrayList; |
44 import java.util.ArrayList; |
46 import java.util.Arrays; |
45 import java.util.Arrays; |
47 import java.util.Collections; |
46 import java.util.Collections; |
86 validator.validate(); |
85 validator.validate(); |
87 } |
86 } |
88 |
87 |
89 private static void testOptions() throws Exception { |
88 private static void testOptions() throws Exception { |
90 List<Plugin> builtInPlugins = new ArrayList<>(); |
89 List<Plugin> builtInPlugins = new ArrayList<>(); |
91 builtInPlugins.addAll(PluginRepository.getPlugins(Layer.boot())); |
90 builtInPlugins.addAll(PluginRepository.getPlugins(ModuleLayer.boot())); |
92 if(builtInPlugins.isEmpty()) { |
91 if(builtInPlugins.isEmpty()) { |
93 throw new Exception("No builtin plugins"); |
92 throw new Exception("No builtin plugins"); |
94 } |
93 } |
95 List<String> options = new ArrayList<>(); |
94 List<String> options = new ArrayList<>(); |
96 for (Plugin p : builtInPlugins) { |
95 for (Plugin p : builtInPlugins) { |