Skip to content

Commit

Permalink
Use plus operator to combine properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hichamboushaba committed Jan 16, 2025
1 parent 1a145e5 commit 20549d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ static def loadPropertiesWithFallback(Logger logger, File fallbackFile, File pri
primaryProperties = new Properties()
}

primaryProperties.each { key, value ->
defaultProperties.setProperty(key, value)
}

return defaultProperties
return defaultProperties + primaryProperties
}

static def readPropertiesFromFile(File file) {
Expand Down

0 comments on commit 20549d2

Please sign in to comment.