Skip to content

Commit

Permalink
Fix test single license command
Browse files Browse the repository at this point in the history
  • Loading branch information
goneall committed Dec 19, 2024
1 parent 13ff06f commit cc41cd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/spdx/licenselistpublisher/LicenseXmlTester.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static void main(String[] args) {
DateFormat format = new SimpleDateFormat(SpdxConstantsV3.SPDX_DATE_FORMAT);
String now = format.format(new Date());
LicenseXmlDocument licDoc = new LicenseXmlDocument(licenseXmlFile, spdxV2ModelStore, spdxV3ModelStore,
copyManager, XmlLicenseProvider.createCreationInfo(spdxV3ModelStore, copyManager, "3.25.0", now));
copyManager, XmlLicenseProvider.createCreationInfo(spdxV3ModelStore, copyManager, now, "3.25.0" ));
List<ListedLicenseContainer> licenses = licDoc.getListedLicenses();
if (licenses.size() == 0) {
System.out.println("Empty license XML file - no licenses found");
Expand Down
3 changes: 2 additions & 1 deletion src/org/spdx/licenselistpublisher/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
package org.spdx.licenselistpublisher;

import org.apache.commons.lang3.ArrayUtils;
import org.spdx.library.SpdxModelFactory;

/**
* Dispatch to the individual tools
*/
public class Main {

public static void main(String[] args) {

SpdxModelFactory.init();
if (args.length < 1) {
usage();
return;
Expand Down

0 comments on commit cc41cd6

Please # to comment.