X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=maven%2Fmaven-argeo-osgi-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fmaven%2Fplugins%2Fosgi%2FEquinoxExecMojo.java;fp=maven%2Fmaven-argeo-osgi-plugin%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fmaven%2Fplugins%2Fosgi%2FEquinoxExecMojo.java;h=acf393e769140f57dcd31484f8ed1844a135344f;hb=45b0bcfd3d796d586163ed9ca2cd91f6de80bc51;hp=1289b55861bffd7f316756582c7db329d0ea3c0c;hpb=45788cedce74d877422a5aaea446f6c949bbbfb8;p=gpl%2Fargeo-slc.git diff --git a/maven/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java b/maven/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java index 1289b5586..acf393e76 100644 --- a/maven/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java +++ b/maven/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();