From 0973ad91ada11b5d108f8ea63ab609c3d45acb05 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Tue, 9 Jun 2009 16:16:43 +0000 Subject: [PATCH] Use execDir to choose config and data dir when not forked. git-svn-id: https://svn.argeo.org/slc/trunk/maven@2520 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- maven-argeo-osgi-plugin/pom.xml | 2 +- .../argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/maven-argeo-osgi-plugin/pom.xml b/maven-argeo-osgi-plugin/pom.xml index 4d2f66f1b..baebae2ff 100644 --- a/maven-argeo-osgi-plugin/pom.xml +++ b/maven-argeo-osgi-plugin/pom.xml @@ -7,7 +7,7 @@ .. maven-argeo-osgi-plugin - 0.1.12 + 0.1.13 maven-plugin Argeo OSGi Plugin diff --git a/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java b/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java index 1289b5586..acf393e76 100644 --- a/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java +++ b/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java @@ -194,8 +194,14 @@ public class EquinoxExecMojo extends AbstractOsgiMojo { protected void execNonForked(LocationsStruct locationsStruct) throws Exception { // Set defaults - if (args == null) - args = defaultArgs; + if (args == null) { + if (fork) + args = defaultArgs; + else + args = new String[] { "-console", "-configuration", + execDir.getPath() + File.separator + "conf", "-data", + execDir.getPath() + File.separator + "data" }; + } // if (!execDir.exists()) // execDir.mkdirs(); -- 2.30.2