org.codehaus.mojo.tools.cli
Class CommandLineManager

java.lang.Object
  extended by org.codehaus.plexus.util.cli.CommandLineUtils
      extended by org.codehaus.mojo.tools.cli.CommandLineManager
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled

public class CommandLineManager
extends org.codehaus.plexus.util.cli.CommandLineUtils
implements org.codehaus.plexus.logging.LogEnabled

Plexus component which command line functions

Author:
jdcasey

Nested Class Summary
 
Nested classes/interfaces inherited from class org.codehaus.plexus.util.cli.CommandLineUtils
org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer
 
Constructor Summary
CommandLineManager()
           
 
Method Summary
 void enableLogging(org.codehaus.plexus.logging.Logger log)
          Plexus log initialization
 int execute(org.codehaus.plexus.util.cli.Commandline cli, InputStream systemIn, org.codehaus.plexus.util.cli.StreamConsumer systemOut, org.codehaus.plexus.util.cli.StreamConsumer systemErr)
          Command line execution with system input
 int execute(org.codehaus.plexus.util.cli.Commandline cli, org.codehaus.plexus.util.cli.StreamConsumer systemOut, org.codehaus.plexus.util.cli.StreamConsumer systemErr)
          Command line execution when you don't need to pass in system input
protected  org.codehaus.plexus.logging.Logger getLogger()
          Standard Plexus log implementition retrieval
 org.codehaus.plexus.util.cli.StreamConsumer newDebugStreamConsumer()
           
 org.codehaus.plexus.util.cli.StreamConsumer newInfoStreamConsumer()
           
 
Methods inherited from class org.codehaus.plexus.util.cli.CommandLineUtils
executeCommandLine, executeCommandLine, executeCommandLine, executeCommandLine, getSystemEnvVars, getSystemEnvVars, isAlive, isAlive, killProcess, quote, quote, quote, toString, translateCommandline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineManager

public CommandLineManager()
Method Detail

newDebugStreamConsumer

public org.codehaus.plexus.util.cli.StreamConsumer newDebugStreamConsumer()

newInfoStreamConsumer

public org.codehaus.plexus.util.cli.StreamConsumer newInfoStreamConsumer()

execute

public int execute(org.codehaus.plexus.util.cli.Commandline cli,
                   org.codehaus.plexus.util.cli.StreamConsumer systemOut,
                   org.codehaus.plexus.util.cli.StreamConsumer systemErr)
            throws org.codehaus.plexus.util.cli.CommandLineException
Command line execution when you don't need to pass in system input

Throws:
org.codehaus.plexus.util.cli.CommandLineException

execute

public int execute(org.codehaus.plexus.util.cli.Commandline cli,
                   InputStream systemIn,
                   org.codehaus.plexus.util.cli.StreamConsumer systemOut,
                   org.codehaus.plexus.util.cli.StreamConsumer systemErr)
            throws org.codehaus.plexus.util.cli.CommandLineException
Command line execution with system input

Throws:
org.codehaus.plexus.util.cli.CommandLineException

getLogger

protected org.codehaus.plexus.logging.Logger getLogger()
Standard Plexus log implementition retrieval


enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger log)
Plexus log initialization

Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled


Copyright © 2005-2008 Codehaus. All Rights Reserved.