Mercurial > dive4elements > framework
diff artifact-database/src/main/java/de/intevation/artifactdatabase/DBConnection.java @ 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 | e27cf9c84eb8 |
children | 933bbc9fc11f |
line wrap: on
line diff
--- 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);