org.apache.maven.shared.release.exec
Class DefaultCommandLineFactory

java.lang.Object
  extended by org.apache.maven.shared.release.exec.DefaultCommandLineFactory
All Implemented Interfaces:
CommandLineFactory

public class DefaultCommandLineFactory
extends Object
implements CommandLineFactory

Create a command line instance.

Author:
Brett Porter
Plexus component:
role:
"org.apache.maven.shared.release.exec.CommandLineFactory"

Field Summary
 
Fields inherited from interface org.apache.maven.shared.release.exec.CommandLineFactory
ROLE
 
Constructor Summary
DefaultCommandLineFactory()
           
 
Method Summary
 Commandline createCommandLine(String executable)
          Create a command line object with default environment for the given executable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCommandLineFactory

public DefaultCommandLineFactory()
Method Detail

createCommandLine

public Commandline createCommandLine(String executable)
                              throws MavenExecutorException
Description copied from interface: CommandLineFactory
Create a command line object with default environment for the given executable.

Specified by:
createCommandLine in interface CommandLineFactory
Parameters:
executable - the executable
Returns:
the command line
Throws:
MavenExecutorException - if there was a problem creating the command line


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.