Skip to content

Commit

Permalink
Merge pull request #353 from basil/split
Browse files Browse the repository at this point in the history
Correctly split Maven properties with equals signs
  • Loading branch information
imonteroperez authored Mar 28, 2022
2 parents bbc4f42 + 24ea915 commit 7417cfa
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 7417cfa

Please sign in to comment.