You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by se...@apache.org on 2020/05/27 07:50:55 UTC

[incubator-nlpcraft] 01/01: H2 sql server data files location fixed. (examples)

This is an automated email from the ASF dual-hosted git repository.

sergeykamov pushed a commit to branch NLPCRAFT-62
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git

commit c96be3413b6f0c540b43c6d16351e20b0a2bde05
Author: Sergey Kamov <se...@apache.org>
AuthorDate: Wed May 27 10:50:48 2020 +0300

    H2 sql server data files location fixed. (examples)
---
 src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlServer.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlServer.scala b/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlServer.scala
index 4640ed1..a6dd4d4 100644
--- a/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlServer.scala
+++ b/src/main/scala/org/apache/nlpcraft/examples/sql/db/SqlServer.scala
@@ -29,7 +29,7 @@ import org.h2.tools.Server
  */
 object SqlServer extends LazyLogging {
     private final val H2_PORT: Int = 9092
-    private final val H2_BASEDIR = "~/nlpcraft-examples/h2"
+    private final val H2_BASEDIR = new File(System.getProperty("user.home"), "nlpcraft-examples/h2").getAbsolutePath
 
     private final val SRV_PARAMS = Seq(
         "-baseDir", H2_BASEDIR,