projects
/
cc0
/
argeo-build.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1ddd43
)
Fix typo in header name
author
Mathieu Baudier <mbaudier@argeo.org>
Mon, 20 Mar 2023 07:45:43 +0000
(08:45 +0100)
committer
Mathieu Baudier <mbaudier@argeo.org>
Mon, 20 Mar 2023 07:45:43 +0000
(08:45 +0100)
src/org/argeo/build/Repackage.java
patch
|
blob
|
history
diff --git
a/src/org/argeo/build/Repackage.java
b/src/org/argeo/build/Repackage.java
index 335222114583f0f8c065552a679b3d22735942bc..9e2c14fd409f36e62ec13e03845d16ee64b52a02 100644
(file)
--- 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
+ " 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");
writer.append("\nIt is redistributed under the following license:\n\n");
writer.append("SPDX-Identifier: " + spdxLicenseId + "\n\n");