You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2014/06/25 11:17:41 UTC
svn commit: r1605301 -
/syncope/branches/1_1_X/build-tools/src/main/java/org/apache/syncope/buildtools/H2StartStopListener.java
Author: ilgrosso
Date: Wed Jun 25 09:17:41 2014
New Revision: 1605301
URL: http://svn.apache.org/r1605301
Log:
No need to set baseDir for H2: affects any H2 instance in the same JEE container (including internal storage)
Modified:
syncope/branches/1_1_X/build-tools/src/main/java/org/apache/syncope/buildtools/H2StartStopListener.java
Modified: syncope/branches/1_1_X/build-tools/src/main/java/org/apache/syncope/buildtools/H2StartStopListener.java
URL: http://svn.apache.org/viewvc/syncope/branches/1_1_X/build-tools/src/main/java/org/apache/syncope/buildtools/H2StartStopListener.java?rev=1605301&r1=1605300&r2=1605301&view=diff
==============================================================================
--- syncope/branches/1_1_X/build-tools/src/main/java/org/apache/syncope/buildtools/H2StartStopListener.java (original)
+++ syncope/branches/1_1_X/build-tools/src/main/java/org/apache/syncope/buildtools/H2StartStopListener.java Wed Jun 25 09:17:41 2014
@@ -18,7 +18,6 @@
*/
package org.apache.syncope.buildtools;
-import java.io.File;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
@@ -49,10 +48,9 @@ public class H2StartStopListener impleme
public void contextInitialized(final ServletContextEvent sce) {
final ServletContext context = sce.getServletContext();
- final File workDir = (File) sce.getServletContext().getAttribute("javax.servlet.context.tempdir");
try {
final Server h2TestDb = new Server();
- h2TestDb.runTool("-baseDir", workDir.getAbsolutePath(), "-tcp", "-tcpDaemon", "-web", "-webDaemon",
+ h2TestDb.runTool("-tcp", "-tcpDaemon", "-web", "-webDaemon",
"-webPort", sce.getServletContext().getInitParameter("testdb.webport"));
context.setAttribute(H2_TESTDB, h2TestDb);