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;h=ef849a5d6e1a7132cfd9e2dad2dc01b815675411;hb=0a2b76a4c6e59991ad95c0f9c4548e05f26507e1;hp=d218100ea0769e917a3f17287c8c9a7707d68922;hpb=4dffd2502e1ea66c2491697c98456b7db695569c;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 d218100ea..ef849a5d6 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 @@ -205,13 +205,18 @@ public class EquinoxExecMojo extends AbstractOsgiMojo { List cmdList = new ArrayList(); // System properties - if (!systemProperties.containsKey("osgi.bundles")) + if (!systemProperties.containsKey("osgi.bundles")) { + if (locationsStruct.osgiBootArtifact == null) + throw new Exception("No SLC OSGi boot bundle available."); System.setProperty("osgi.bundles", locationsStruct.osgiBootArtifact .getFile().getCanonicalPath() + "@start"); + } + if (!systemProperties.containsKey("slc.osgi.locations")) System.setProperty("slc.osgi.locations", locationsStruct.osgiLocations); + for (Iterator keys = systemProperties.keySet().iterator(); keys .hasNext();) { Object key = keys.next();