Modifier and Type | Field and Description |
---|---|
static char |
DEBUG |
static char |
ERRORS |
static char |
HELP |
static char |
QUIET |
static char |
SET_SYSTEM_PROPERTY |
static char |
VERSION |
Constructor and Description |
---|
AbstractCli() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.commons.cli.Options |
buildCliOptions(org.apache.commons.cli.Options options) |
org.apache.commons.cli.Options |
buildDefaultCliOptions() |
void |
displayHelp() |
int |
execute(String[] args) |
int |
execute(String[] args,
org.codehaus.plexus.classworlds.ClassWorld classWorld) |
String |
getPomPropertiesPath() |
abstract void |
invokePlexusComponent(org.apache.commons.cli.CommandLine cli,
org.codehaus.plexus.PlexusContainer container) |
org.apache.commons.cli.CommandLine |
parse(String[] args) |
protected void |
showError(String message,
Exception e,
boolean show) |
protected int |
showFatalError(String message,
Exception e,
boolean show) |
public static final char QUIET
public static final char DEBUG
public static final char ERRORS
public static final char HELP
public static final char VERSION
public static final char SET_SYSTEM_PROPERTY
public abstract org.apache.commons.cli.Options buildCliOptions(org.apache.commons.cli.Options options)
buildCliOptions
in interface Cli
public abstract void invokePlexusComponent(org.apache.commons.cli.CommandLine cli, org.codehaus.plexus.PlexusContainer container) throws Exception
invokePlexusComponent
in interface Cli
Exception
public String getPomPropertiesPath()
getPomPropertiesPath
in interface Cli
public int execute(String[] args)
public int execute(String[] args, org.codehaus.plexus.classworlds.ClassWorld classWorld)
public org.apache.commons.cli.Options buildDefaultCliOptions()
public org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
public void displayHelp()
Copyright © 2001–2014 Codehaus. All rights reserved.