org.apache.maven.shared.release.exec
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
public class ForkedMavenExecutor
- extends AbstractMavenExecutor
Fork Maven to executed a series of goals.
- Author:
- Brett Porter
Fields inherited from interface org.apache.maven.shared.release.exec.MavenExecutor |
ROLE |
Method Summary |
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.lang.String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
java.lang.String arguments,
ReleaseResult result)
Execute goals using Maven. |
void |
executeGoals(java.io.File workingDirectory,
java.lang.String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
java.lang.String additionalArguments,
java.lang.String pomFileName,
ReleaseResult relResult)
Execute goals using Maven. |
void |
setCommandLineFactory(CommandLineFactory commandLineFactory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForkedMavenExecutor
public ForkedMavenExecutor()
executeGoals
public void executeGoals(java.io.File workingDirectory,
java.lang.String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
java.lang.String additionalArguments,
java.lang.String pomFileName,
ReleaseResult relResult)
throws MavenExecutorException
- Description copied from interface:
MavenExecutor
- Execute goals using Maven.
- Parameters:
workingDirectory
- the directory to execute ingoals
- the goals to run (space delimited)releaseEnvironment
- the environmental settings, maven-home, etc used for this releaseinteractive
- whether to execute in interactive mode, or the default batch modeadditionalArguments
- additional arguments to pass to the Maven commandpomFileName
- the file name of the POM to execute on
- Throws:
MavenExecutorException
- if an error occurred executing Maven
executeGoals
public void executeGoals(java.io.File workingDirectory,
java.lang.String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
java.lang.String arguments,
ReleaseResult result)
throws MavenExecutorException
- Description copied from interface:
MavenExecutor
- Execute goals using Maven.
- Parameters:
workingDirectory
- the directory to execute ingoals
- the goals to run (space delimited)releaseEnvironment
- the environmental settings, maven-home, etc used for this releaseinteractive
- whether to execute in interactive mode, or the default batch modearguments
- additional arguments to pass to the Maven command
- Throws:
MavenExecutorException
- if an error occurred executing Maven
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
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.