Skip to content

Commit

Permalink
Merge pull request #179 from spdx/initmodels
Browse files Browse the repository at this point in the history
Initialize models in the Main
  • Loading branch information
goneall authored Dec 21, 2024
2 parents e190384 + fec6260 commit ce69a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/spdx/tools/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package org.spdx.tools;

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

/**
* Dispatch individual tools
Expand All @@ -37,7 +38,7 @@ public static void main(String[] args) {
usage();
return;
}

SpdxModelFactory.init();
String spdxTool = args[0];
args = ArrayUtils.removeElement(args, args[0]);
if ("Convert".equals(spdxTool)) {
Expand Down

0 comments on commit ce69a13

Please sign in to comment.