Package org.spdx.tools
Class CompareSpdxDocs
java.lang.Object
org.spdx.tools.CompareSpdxDocs
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:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain entry point for the CompareSpdxDocs tool.static voidonlineFunction(String[] args) Invoke SPDX document processing functions from the online tool
-
Constructor Details
-
CompareSpdxDocs
public CompareSpdxDocs()
-
-
Method Details
-
main
Main entry point for the CompareSpdxDocs tool. Delegates torun(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
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
-