Skip to content

Commit

Permalink
Treat blank properties as unset (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Apr 2, 2022
1 parent 66b30f4 commit 36976ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ private void setProperty(String key, String value) {
}

private void unsetProperty(String key) {
if (project.getProperties().containsKey(key)) {
String currentValue = project.getProperties().getProperty(key);
if (currentValue != null && !currentValue.isEmpty()) {
getLog().info("Unsetting " + key);
project.getProperties().remove(key);
}
Expand Down

0 comments on commit 36976ea

Please sign in to comment.