Class CompareSpdxDocs

java.lang.Object
org.spdx.tools.CompareSpdxDocs

public class CompareSpdxDocs extends Object
Compares multiple SPDX documents and stores the results in a spreadsheet Usage: CompareSpdxDoc output.xlsx doc1 doc2 doc3 ... docN where output.xls is a file name for the output spreadsheet file and docX are SPDX document files to compare or directories containing SPDX documents. Document files can be either in RDF/XML or tag/value format
Exit codes:
  • 0 - the documents were compared and the output spreadsheet was written
  • 1 - the comparison failed, or the output spreadsheet could not be written
  • 2 - the command was invoked incorrectly (missing/invalid arguments)
Author:
Gary O'Neall
  • Constructor Details

    • CompareSpdxDocs

      public CompareSpdxDocs()
  • Method Details

    • main

      public static void main(String[] args)
      Main entry point for the CompareSpdxDocs tool. Delegates to run(String[]) and terminates the JVM with its exit status.
      Parameters:
      args - args[0] is the output Excel file name, all other args are SPDX document file names
    • onlineFunction

      public static void onlineFunction(String[] args) throws OnlineToolException
      Invoke SPDX document processing functions from the online tool
      Parameters:
      args - args[0] is the output Excel file name, all other args are SPDX document file names
      Throws:
      OnlineToolException - Exception caught by JPype and displayed to the user