Package org.spdx.tools
package org.spdx.tools
-
ClassDescriptionCompares 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.Shared process exit status codes for the command line tools.Generates a verification code for a specific directory
Exit codes: 0 - the verification code was generated successfully 1 - the verification code could not be generated 2 - the command was invoked incorrectly (missing/invalid arguments)Illegal parameter fro a file nameDispatch individual tools
Each dispatched tool's main() calls System.exit() itself, which terminates the process immediately with that tool's own exit status - so the exit codes below only apply when no tool is actually dispatched: 0 - success (e.g. the "Version" command, which is handled here directly instead of being dispatched) 2 - the command was invoked incorrectly (missing/unrecognized tool name)Tool to compare a license text to standard licenses.Default Exception thrown to the Online ToolConvert an RDF schema file containing SPDX property to a JSON context file for all properties in the SPDX namespaceConvert an RDF schema file containing SPDX property to a JSON schema file for all properties in the SPDX namespaceConvert an RDF OWL document to an XML SchemaConverts between various SPDX file types arg[0] from file path arg[1] to file path arg[2] from file type [RDFXML|RDFTTL|JSON|XLS|XLSX|YAML|TAG] - if not present, file type of the from file will be used arg[3] to file type [RDFXML|RDFTTL|JSON|XLS|XLSX|YAML|TAG] - if not present, file type of the to file will be used arg[4] excludeLicenseDetails If present, listed license and listed exception properties will not be included in the output file thecovert(...)methods can be called programmatically to convert files
Exit codes: 0 - the conversion succeeded 1 - the conversion failed 2 - the command was invoked incorrectly (missing/invalid arguments)Exceptions related to the SPDX converter utilityStatic helper methods for the various toolsSupported serialization file typesExceptions for the SPDX Verify toolsStatic helper methods for tools and library version informationSimple pretty printer for SPDX RDF XML files.Verifies an SPDX document and lists any verification errors
Exit codes: 0 - the SPDX document is valid 1 - the SPDX document is invalid, or could not be read/parsed 2 - the command was invoked incorrectly (missing/invalid arguments)