perfsonar-dev - [GEANT/SA2/ps-java-services] r5482 - branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5482 - branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5482 - branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets
- Date: Mon, 15 Feb 2010 13:44:40 GMT
Author: psnc.trzaszczka
Date: 2010-02-15 13:44:39 +0000 (Mon, 15 Feb 2010)
New Revision: 5482
Modified:
branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
Log:
resource path improved
Modified:
branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
===================================================================
---
branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
2010-02-15 11:23:40 UTC (rev 5481)
+++
branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets/ExistDbInitializerServlet.java
2010-02-15 13:44:39 UTC (rev 5482)
@@ -1,6 +1,5 @@
package org.perfsonar.service.lookupservice.servlets;
-import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URISyntaxException;
@@ -122,9 +121,7 @@
PrintWriter out = resp.getWriter();
ConfigurationManager configManager;
configManager = ConfigurationManager.getInstance();
- File dir = new File(".");
- String dbContentDirPath = dir.getCanonicalPath() +
"/../webapps"
- + req.getContextPath() + "/db";
+ String dbContentDirPath =
getServletContext().getRealPath("/")+"/db";
try {
initializeDatabase(dbContentDirPath,
configManager);
out.append("DbInitializer - success");
- [GEANT/SA2/ps-java-services] r5482 - branches/new-structure-with-base2/ps-mdm-ls/src/main/java/org/perfsonar/service/lookupservice/servlets, svn-noreply, 02/15/2010
Archive powered by MHonArc 2.6.16.