Class GenerateVerificationCode

java.lang.Object
org.spdx.tools.GenerateVerificationCode

public class GenerateVerificationCode extends Object
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)
Author:
Gary O'Neall
  • Constructor Details

    • GenerateVerificationCode

      public GenerateVerificationCode()
  • Method Details

    • main

      public static void main(String[] args)
      Print an SPDX Verification code for a directory of files args[0] is the source directory containing the files args[1] is an optional regular expression of skipped files. The expression is applied against a file path relative the the source directory supplied Delegates to run(String[]) and terminates the JVM with its exit status.
      Parameters:
      args -
    • generateVerificationCode

      public static org.spdx.library.model.v2.SpdxPackageVerificationCode generateVerificationCode(String directoryPath, @Nullable String skippedRegex) throws OnlineToolException
      Throws:
      OnlineToolException