Skip to content

Commit

Permalink
Merge pull request #244 from kabir/WFMP-165-3.0
Browse files Browse the repository at this point in the history
[WFMP-165] Split module paths before calling addModulePaths()
  • Loading branch information
jamezp authored Jul 18, 2022
2 parents aca6304 + d4a1007 commit 3f4ea57
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.wildfly.plugin.cli;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
Expand Down Expand Up @@ -138,7 +139,8 @@ protected CliCommandBuilder createCommandBuilder(final T config, final Path scri
final Map<String, String> systemProperties = config.getSystemProperties();
systemProperties.forEach((key, value) -> builder.addJavaOption(String.format("-D%s=%s", key, value)));
if (systemProperties.containsKey("module.path")) {
builder.setModuleDirs(systemProperties.get("module.path"));
String[] modulePaths = systemProperties.get("module.path").split(File.pathSeparator);
builder.setModuleDirs(modulePaths);
}

final Properties properties = new Properties();
Expand Down

0 comments on commit 3f4ea57

Please sign in to comment.