From: Mathieu Baudier Date: Mon, 20 Mar 2023 07:45:43 +0000 (+0100) Subject: Fix typo in header name X-Git-Tag: v2.3.5~36 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;h=0781993c22325589369f52809574f152715b3d6d;p=cc0%2Fargeo-build.git Fix typo in header name --- diff --git a/src/org/argeo/build/Repackage.java b/src/org/argeo/build/Repackage.java index 3352221..9e2c14f 100644 --- a/src/org/argeo/build/Repackage.java +++ b/src/org/argeo/build/Repackage.java @@ -1386,7 +1386,9 @@ public class Repackage { + " in order to comply with A2 packaging standards.\n"); // license - String spdxLicenseId = manifest.getMainAttributes().getValue(ARGEO_ORIGIN_M2_REPO.toString()); + String spdxLicenseId = manifest.getMainAttributes().getValue(SPDX_LICENSE_IDENTIFIER.toString()); + if (spdxLicenseId == null) + throw new IllegalStateException("An SPDX license id must have beend defined at this stage."); writer.append("\nIt is redistributed under the following license:\n\n"); writer.append("SPDX-Identifier: " + spdxLicenseId + "\n\n");