From: Mathieu Date: Tue, 29 Nov 2022 09:47:27 +0000 (+0100) Subject: Throw an exception if SLC-Origin-M2-Merge is not set X-Git-Tag: v2.3.4^0 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;h=0499267b5f2b534d852cc8a2d5a7070b21730ed4;hp=c74c069af4612100592e3cb2bd33ea34f7f79449;p=cc0%2Fargeo-build.git Throw an exception if SLC-Origin-M2-Merge is not set --- diff --git a/src/org/argeo/build/Repackage.java b/src/org/argeo/build/Repackage.java index 7aa26b9..51d125e 100644 --- a/src/org/argeo/build/Repackage.java +++ b/src/org/argeo/build/Repackage.java @@ -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;