Skip to content

Commit

Permalink
[jlink] sort module names
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Feb 25, 2022
1 parent d8eefce commit ea7659d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import java.util.stream.Stream;

import static java.util.stream.Collectors.joining;
Expand Down Expand Up @@ -104,7 +105,7 @@ protected void doAssemble(Map<String, Object> props) throws AssemblerProcessingE
jars.addAll(copyJars(context, assembler, platformJarsDirectory, platform));

// resolve module names
Set<String> moduleNames = resolveModuleNames(context, jdkPath, jarsDirectory, platform, props);
Set<String> moduleNames = new TreeSet<>(resolveModuleNames(context, jdkPath, jarsDirectory, platform, props));
context.getLogger().debug(RB.$("assembler.resolved.module.names"), moduleNames);
if (moduleNames.isEmpty()) {
throw new AssemblerProcessingException(RB.$("ERROR_assembler_no_module_names"));
Expand Down

0 comments on commit ea7659d

Please sign in to comment.