Skip to content

Commit

Permalink
fix: exe task must have built-in modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed May 5, 2023
1 parent 36a7e89 commit 6ae86a1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/bee/task/Exe.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,16 @@ public File build() {
* @param libraries
* @return
*/
private static Set<String> modules(Set<Library> libraries) {
private Set<String> modules(Set<Library> libraries) {
Set<String> names = new HashSet();
names.add("jdk.localedata");
names.add("jdk.crypto.ec");
names.add("jdk.crypto.cryptoki");
names.add("jdk.crypto.mscapi");
names.add("jdk.net");
names.add("jdk.zipfs");
names.add("java.naming");
names.add("jdk.naming.dns");

for (Library library : libraries) {
try {
Expand All @@ -173,6 +180,8 @@ private static Set<String> modules(Set<Library> libraries) {
// ignore
}
}

ui.info("Modules: " + names.stream().sorted().toList());
return names;
}
}

0 comments on commit 6ae86a1

Please sign in to comment.