Class AbstractCli

java.lang.Object
org.codehaus.plexus.tools.cli.AbstractCli
All Implemented Interfaces:
Cli

public abstract class AbstractCli extends Object implements Cli
Version:
$Id$
Author:
jason van zyl
  • Field Details

  • Constructor Details

    • AbstractCli

      public AbstractCli()
  • Method Details

    • buildCliOptions

      public abstract org.apache.commons.cli.Options buildCliOptions(org.apache.commons.cli.Options options)
      Specified by:
      buildCliOptions in interface Cli
    • invokePlexusComponent

      public abstract void invokePlexusComponent(org.apache.commons.cli.CommandLine cli, org.codehaus.plexus.PlexusContainer container) throws Exception
      Specified by:
      invokePlexusComponent in interface Cli
      Throws:
      Exception
    • getPomPropertiesPath

      public String getPomPropertiesPath()
      Specified by:
      getPomPropertiesPath in interface Cli
    • execute

      public int execute(String[] args)
    • execute

      public int execute(String[] args, org.codehaus.plexus.classworlds.ClassWorld classWorld)
    • customizeContainerConfiguration

      protected void customizeContainerConfiguration(org.codehaus.plexus.ContainerConfiguration configuration, org.apache.commons.cli.CommandLine cli)
    • showFatalError

      protected int showFatalError(String message, Exception e, boolean show)
    • showError

      protected void showError(String message, Exception e, boolean show)
    • buildDefaultCliOptions

      public org.apache.commons.cli.Options buildDefaultCliOptions()
    • parse

      public org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException
      Throws:
      org.apache.commons.cli.ParseException
    • displayHelp

      public void displayHelp()