You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2018/01/01 09:22:43 UTC

[karaf-decanter] branch master updated: Use karaf.data to store orientdb database

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

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-decanter.git


The following commit(s) were added to refs/heads/master by this push:
     new 710f1b7  Use karaf.data to store orientdb database
710f1b7 is described below

commit 710f1b7a93b71911ed94079c20cb4f5f1ab9b56a
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Mon Jan 1 10:22:28 2018 +0100

    Use karaf.data to store orientdb database
---
 .../main/java/org/apache/karaf/decanter/orientdb/EmbeddedInstance.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/orientdb/src/main/java/org/apache/karaf/decanter/orientdb/EmbeddedInstance.java b/orientdb/src/main/java/org/apache/karaf/decanter/orientdb/EmbeddedInstance.java
index 1db6990..c58e309 100644
--- a/orientdb/src/main/java/org/apache/karaf/decanter/orientdb/EmbeddedInstance.java
+++ b/orientdb/src/main/java/org/apache/karaf/decanter/orientdb/EmbeddedInstance.java
@@ -46,6 +46,7 @@ public class EmbeddedInstance {
     public void activate() throws Exception {
         LOGGER.info("Starting embedded OrientDB server");
         System.setProperty("ORIENTDB_ROOT_PASSWORD", "decanter");
+        System.setProperty("ORIENTDB_HOME", System.getProperty("karaf.data") + File.separator + "orientdb");
         Orient.instance().startup();
         server = OServerMain.create();
         server.startup(new File(new File(System.getProperty("karaf.etc")), ORIENTDB_SERVER_CONFIG));

-- 
To stop receiving notification emails like this one, please contact
['"commits@karaf.apache.org" <co...@karaf.apache.org>'].