Skip to content

Commit

Permalink
Overriding properties from command line using -D
Browse files Browse the repository at this point in the history
The properties on the command line override the setting file.
  • Loading branch information
Leonard Slass committed Jul 24, 2020
1 parent 8d111a8 commit 48c3aea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ private void loadConfigurationFile() {
properties.load(configurationURL.openStream());

}

// Add logging properties defined in jvm argument like -DLOGGER=warning
System.getProperties().forEach((key, value) -> properties.put(key, value));

} catch (Exception e) {
LOGGER.error("Error while loading 'hotswap-agent.properties' from base URL " + configurationURL, e);
}
Expand Down

0 comments on commit 48c3aea

Please sign in to comment.