Modifier and Type | Field and Description |
---|---|
static char |
DEBUG |
static char |
ERRORS |
static char |
HELP |
private org.apache.commons.cli.Options |
options |
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() |
private static java.lang.String[] |
cleanArgs(java.lang.String[] args) |
protected void |
customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration configuration,
org.apache.commons.cli.CommandLine cli) |
void |
displayHelp() |
int |
execute(java.lang.String[] args) |
int |
execute(java.lang.String[] args,
org.codehaus.plexus.classworlds.ClassWorld classWorld) |
private java.util.Properties |
getExecutionProperties(org.apache.commons.cli.CommandLine commandLine) |
java.lang.String |
getPomPropertiesPath() |
abstract void |
invokePlexusComponent(org.apache.commons.cli.CommandLine cli,
org.codehaus.plexus.PlexusContainer container) |
org.apache.commons.cli.CommandLine |
parse(java.lang.String[] args) |
private void |
setCliProperty(java.lang.String property,
java.util.Properties executionProperties) |
protected void |
showError(java.lang.String message,
java.lang.Exception e,
boolean show) |
protected int |
showFatalError(java.lang.String message,
java.lang.Exception e,
boolean show) |
private void |
showVersion() |
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
private org.apache.commons.cli.Options options
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 java.lang.Exception
invokePlexusComponent
in interface Cli
java.lang.Exception
public java.lang.String getPomPropertiesPath()
getPomPropertiesPath
in interface Cli
public int execute(java.lang.String[] args)
public int execute(java.lang.String[] args, org.codehaus.plexus.classworlds.ClassWorld classWorld)
protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration configuration, org.apache.commons.cli.CommandLine cli)
protected int showFatalError(java.lang.String message, java.lang.Exception e, boolean show)
protected void showError(java.lang.String message, java.lang.Exception e, boolean show)
private void showVersion()
private java.util.Properties getExecutionProperties(org.apache.commons.cli.CommandLine commandLine)
private void setCliProperty(java.lang.String property, java.util.Properties executionProperties)
public org.apache.commons.cli.Options buildDefaultCliOptions()
public org.apache.commons.cli.CommandLine parse(java.lang.String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static java.lang.String[] cleanArgs(java.lang.String[] args)
public void displayHelp()