Class Main

java.lang.Object
org.spdx.tools.Main

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

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args - args[0] is the name of the tools with the remaining args being the tool parameters