Class DefaultCommandLineFactory
java.lang.Object
org.apache.maven.shared.release.exec.DefaultCommandLineFactory
- All Implemented Interfaces:
CommandLineFactory
@Singleton
@Named
public class DefaultCommandLineFactory
extends Object
implements CommandLineFactory
Create a command line instance.
- Author:
- Brett Porter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.codehaus.plexus.util.cli.Commandline
createCommandLine
(String executable) Create a command line object with default environment for the given executable.
-
Constructor Details
-
DefaultCommandLineFactory
public DefaultCommandLineFactory()
-
-
Method Details
-
createCommandLine
public org.codehaus.plexus.util.cli.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 interfaceCommandLineFactory
- Parameters:
executable
- the executable- Returns:
- the command line
- Throws:
MavenExecutorException
- if there was a problem creating the command line
-