Fix typo in header name
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 20 Mar 2023 07:45:43 +0000 (08:45 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 20 Mar 2023 07:45:43 +0000 (08:45 +0100)
src/org/argeo/build/Repackage.java

index 335222114583f0f8c065552a679b3d22735942bc..9e2c14fd409f36e62ec13e03845d16ee64b52a02 100644 (file)
@@ -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");