Skip to content

Commit

Permalink
Merge pull request #28081 from ia3andy/fix-codestart-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Sep 20, 2022
2 parents ebdf922 + 7d2c53c commit 9ed77a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ private void writePropertiesConfig(Path targetPath, Map<String, Object> config)
final HashMap<String, String> flat = new HashMap<>();
flatten("", flat, config);
for (Map.Entry<String, String> entry : flat.entrySet()) {
builder.append(entry.getKey()).append("=").append(entry.getValue()).append("\n");
final String key = entry.getKey().replaceAll("\\.~$", "");
builder.append(key).append("=").append(entry.getValue()).append("\n");
}
final Path propertiesTargetPath = targetPath.getParent()
.resolve(targetPath.getFileName().toString().replace(".yml", ".properties"));
Expand Down

0 comments on commit 9ed77a6

Please sign in to comment.