Class DefaultCommandLineFactory
- java.lang.Object
-
- org.apache.maven.shared.release.exec.DefaultCommandLineFactory
-
- All Implemented Interfaces:
CommandLineFactory
@Component(role=CommandLineFactory.class) public class DefaultCommandLineFactory extends java.lang.Object implements CommandLineFactory
Create a command line instance.
-
-
Constructor Summary
Constructors Constructor Description DefaultCommandLineFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.codehaus.plexus.util.cli.Commandline
createCommandLine(java.lang.String executable)
Create a command line object with default environment for the given executable.
-
-
-
Method Detail
-
createCommandLine
public org.codehaus.plexus.util.cli.Commandline createCommandLine(java.lang.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
-
-