Skip to content

Commit

Permalink
Correct split Maven properties with equals signs
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Mar 21, 2022
1 parent bbc4f42 commit 24ea915
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ public static void main(String[] args) throws IOException, PlexusContainerExcept
String[] split = options.getMavenProperties().split("\\s*:\\s*");
Map<String, String> mavenProps = new HashMap<>(split.length);
for (String expr : split) {
String[] split2 = expr.split("=");
String[] split2 = expr.split("=", 2);
String key = split2[0];
String value = split2.length >= 2 ? split2[1] : null;
String value = split2.length == 2 ? split2[1] : null;
mavenProps.put(key, value);
}
config.setMavenProperties(mavenProps);
Expand Down

0 comments on commit 24ea915

Please sign in to comment.