]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - maven/maven-argeo-osgi-plugin/src/main/java/org/argeo/slc/maven/plugins/osgi/EquinoxExecMojo.java
Prepare releasing
[gpl/argeo-slc.git] / maven / maven-argeo-osgi-plugin / src / main / java / org / argeo / slc / maven / plugins / osgi / EquinoxExecMojo.java
index d218100ea0769e917a3f17287c8c9a7707d68922..ef849a5d6e1a7132cfd9e2dad2dc01b815675411 100644 (file)
@@ -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();