Mercurial > dive4elements > framework
changeset 95:0edcaf5b5c78
The path to database can be configured with a path relative to the configuration directory.
artifacts/trunk@1007 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Apr 2010 16:12:37 +0000 |
parents | 5332d956729c |
children | f03a309a037f |
files | ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Apr 17 10:28:43 2010 +0000 +++ b/ChangeLog Tue Apr 27 16:12:37 2010 +0000 @@ -1,3 +1,8 @@ +2010-04-27 Ingo Weinzierl <ingo.weinzierl@intevation.de> + + * artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java: + The path to database can be configured with a relative path now. + 2010-04-17 Sascha L. Teichmann <sascha.teichmann@intevation.de> * artifact-database/src/main/java/de/intevation/artifactdatabase/SQL.java,
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java Sat Apr 17 10:28:43 2010 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java Tue Apr 27 16:12:37 2010 +0000 @@ -115,6 +115,8 @@ String url = Config.getStringXPath( DB_URL, DEFAULT_URL); + url = Config.replaceConfigDir(url); + String user = Config.getStringXPath( DB_USER, DEFAULT_USER);