org.jacoco.cli.internal
Class Main

java.lang.Object
  extended by org.jacoco.cli.internal.Command
      extended by org.jacoco.cli.internal.Main

public class Main
extends Command

Entry point for all command line operations.


Field Summary
 
Fields inherited from class org.jacoco.cli.internal.Command
help, JAVACMD, quiet
 
Method Summary
 String description()
           
 int execute(PrintWriter out, PrintWriter err)
          Executes the given command.
static void main(String... args)
          Main entry point for program invocations.
 String usage(CommandParser parser)
           
 
Methods inherited from class org.jacoco.cli.internal.Command
name, printHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

description

public String description()
Specified by:
description in class Command
Returns:
Short description of the command.

usage

public String usage(CommandParser parser)
Overrides:
usage in class Command
Parameters:
parser - parser for this command
Returns:
usage string displayed for help

execute

public int execute(PrintWriter out,
                   PrintWriter err)
            throws Exception
Description copied from class: Command
Executes the given command.

Specified by:
execute in class Command
Parameters:
out - std out
err - std err
Returns:
exit code, should be 0 for normal operation
Throws:
Exception - any exception that my occur during execution

main

public static void main(String... args)
                 throws Exception
Main entry point for program invocations.

Parameters:
args - program arguments
Throws:
Exception - All internal exceptions are directly passed on to get printed on the console


Copyright © 2009–2023 Mountainminds GmbH & Co. KG. All rights reserved.