Skip to content

Commit

Permalink
0001222: db. properties are not overridable as -D system properties
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 1, 2013
1 parent 3ba55c3 commit fa1da09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -43,6 +43,8 @@ public static BasicDataSource create(TypedProperties properties) {

public static BasicDataSource create(TypedProperties properties,
ISecurityService securityService) {
properties = properties.copy();
properties.putAll(System.getProperties());
ResettableBasicDataSource dataSource = new ResettableBasicDataSource();
dataSource.setDriverClassName(properties.get(
BasicDataSourcePropertyConstants.DB_POOL_DRIVER, null));
Expand Down
Expand Up @@ -182,5 +182,9 @@ public void merge(Properties properties) {
}
}
}

public TypedProperties copy() {
return new TypedProperties(this);
}

}

0 comments on commit fa1da09

Please sign in to comment.