Class ForkedMavenExecutor
- java.lang.Object
-
- org.apache.maven.shared.release.exec.AbstractMavenExecutor
-
- org.apache.maven.shared.release.exec.ForkedMavenExecutor
-
- All Implemented Interfaces:
MavenExecutor
,org.codehaus.plexus.logging.LogEnabled
@Component(role=MavenExecutor.class, hint="forked-path") public class ForkedMavenExecutor extends AbstractMavenExecutor
Fork Maven to executed a series of goals.
-
-
Field Summary
Fields Modifier and Type Field Description private CommandLineFactory
commandLineFactory
Command line factory.
-
Constructor Summary
Constructors Constructor Description ForkedMavenExecutor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
executeCommandLine(org.codehaus.plexus.util.cli.Commandline cl, java.io.InputStream systemIn, java.io.OutputStream systemOut, java.io.OutputStream systemErr)
void
executeGoals(java.io.File workingDirectory, java.util.List<java.lang.String> goals, ReleaseEnvironment releaseEnvironment, boolean interactive, java.lang.String additionalArguments, java.lang.String pomFileName, ReleaseResult relResult)
void
setCommandLineFactory(CommandLineFactory commandLineFactory)
-
Methods inherited from class org.apache.maven.shared.release.exec.AbstractMavenExecutor
enableLogging, encryptSettings, executeGoals, getLogger, getSettingsWriter
-
-
-
-
Field Detail
-
commandLineFactory
@Requirement private CommandLineFactory commandLineFactory
Command line factory.
-
-
Method Detail
-
executeGoals
public void executeGoals(java.io.File workingDirectory, java.util.List<java.lang.String> goals, ReleaseEnvironment releaseEnvironment, boolean interactive, java.lang.String additionalArguments, java.lang.String pomFileName, ReleaseResult relResult) throws MavenExecutorException
- Specified by:
executeGoals
in classAbstractMavenExecutor
- Throws:
MavenExecutorException
-
setCommandLineFactory
public void setCommandLineFactory(CommandLineFactory commandLineFactory)
-
executeCommandLine
public static int executeCommandLine(org.codehaus.plexus.util.cli.Commandline cl, java.io.InputStream systemIn, java.io.OutputStream systemOut, java.io.OutputStream systemErr) throws org.codehaus.plexus.util.cli.CommandLineException
- Throws:
org.codehaus.plexus.util.cli.CommandLineException
-
-