Skip to content

Commit

Permalink
Merge pull request #52 from zxy0728/master
Browse files Browse the repository at this point in the history
The system variables in "system.cache" can not be used when MSCP reboot
  • Loading branch information
zxy0728 authored Nov 1, 2017
2 parents 3fdc5d3 + 28b5ffb commit d4cbc9e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,13 @@ public void loadMetaData() {
for (String key : SystemMeta) {

if (metaData.containsKey(key)) {
System.setProperty(key, (String) metaData.get(key));

String value = System.getProperty(key);

if (StringHelper.isEmpty(value)) {
System.setProperty(key, (String) metaData.get(key));
}

}
}
if (log.isLogEnabled()) {
Expand Down

0 comments on commit d4cbc9e

Please sign in to comment.