From: cintake Date: Tue, 3 May 2016 11:40:03 +0000 (+0900) Subject: add jsp-api X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;ds=sidebyside;h=608586db7f437707a8d5692373ea406020c2562f;hp=4927c8f6dc48efaa41ec4c155aaa358db8516da8;p=spiga-app%2Fvaadin.git add jsp-api --- diff --git a/src/main/java/net/korabo/app/orientdb/AppServletContextListener.java b/src/main/java/net/korabo/app/orientdb/AppServletContextListener.java index 79d66f8..2bb83d4 100644 --- a/src/main/java/net/korabo/app/orientdb/AppServletContextListener.java +++ b/src/main/java/net/korabo/app/orientdb/AppServletContextListener.java @@ -12,8 +12,10 @@ import java.util.Properties; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; +import net.korabo.lib.StreamUtil; import net.korabo.lib.UriUtil; import net.korabo.lib.file.FileUriUtil; +import net.korabo.lib.file.ResourceFilesUtil; import net.korabo.lib.file.SysFilesUtil; import net.korabo.lib.settings.KSettingsUtil; @@ -43,6 +45,13 @@ public class AppServletContextListener implements ServletContextListener{ props.setProperty("orientdb.www.path", orientDBwww); try { + File cfgFile = FileUriUtil.getFileFor(orientDBcfg); + SysFilesUtil.chkAndMake(cfgFile); + if (cfgFile.length() == 0){ + // initialize + + + } OServer server = OServerMain.create(); server.startup(FileUriUtil.getFileFor(orientDBcfg)); server.activate(); diff --git a/src/main/resources/net/korabo/app/orientdb/smplconfig.xml b/src/main/resources/net/korabo/app/orientdb/smplconfig.xml new file mode 100644 index 0000000..1cfe3f2 --- /dev/null +++ b/src/main/resources/net/korabo/app/orientdb/smplconfig.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file