Throw an exception if SLC-Origin-M2-Merge is not set v2.3.4
authorMathieu <mbaudier@argeo.org>
Tue, 29 Nov 2022 09:47:27 +0000 (10:47 +0100)
committerMathieu <mbaudier@argeo.org>
Tue, 29 Nov 2022 09:47:27 +0000 (10:47 +0100)
src/org/argeo/build/Repackage.java

index 7aa26b9756811e027a5c7bc44d23fbfa70d071d1..51d125ea1a7a55c1f01862c4520c05b33669eda1 100644 (file)
@@ -310,6 +310,10 @@ public class Repackage {
                mergeProps.put(ManifestConstants.BUNDLE_VERSION.toString(), m2Version);
 
                String artifactsStr = mergeProps.getProperty(ManifestConstants.SLC_ORIGIN_M2_MERGE.toString());
+               if (artifactsStr == null)
+                       throw new IllegalArgumentException(
+                                       mergeBnd + ": " + ManifestConstants.SLC_ORIGIN_M2_MERGE + " must be set");
+               
                String repoStr = mergeProps.containsKey(SLC_ORIGIN_M2_REPO.toString())
                                ? mergeProps.getProperty(SLC_ORIGIN_M2_REPO.toString())
                                : null;