58 CompilerUtils.cleanDir(dest); |
58 CompilerUtils.cleanDir(dest); |
59 Files.createDirectories(dest); |
59 Files.createDirectories(dest); |
60 Path testsrc = Paths.get(System.getProperty("test.src")); |
60 Path testsrc = Paths.get(System.getProperty("test.src")); |
61 List<String> options = new ArrayList<>(); |
61 List<String> options = new ArrayList<>(); |
62 |
62 |
63 // add -XaddExports |
63 // add --add-exports |
64 String testModules = System.getProperty("test.modules", ""); |
64 String testModules = System.getProperty("test.modules", ""); |
65 List<String> addExports = new ArrayList<>(); |
65 List<String> addExports = new ArrayList<>(); |
66 for (String s : testModules.split("\\s+")) { |
66 for (String s : testModules.split("\\s+")) { |
67 if (s.isEmpty()) continue; |
67 if (s.isEmpty()) continue; |
68 if (s.indexOf('/') != -1) |
68 if (s.indexOf('/') != -1) |
69 addExports.add("-XaddExports:" + s.trim() + "=ALL-UNNAMED"); |
69 addExports.add("--add-exports=" + s.trim() + "=ALL-UNNAMED"); |
70 } |
70 } |
71 options.addAll(addExports); |
71 options.addAll(addExports); |
72 |
72 |
73 for (String dir : srcDirs) { |
73 for (String dir : srcDirs) { |
74 Path source = testsrc.resolve(dir); |
74 Path source = testsrc.resolve(dir); |