public class ForkedMavenExecutor extends AbstractMavenExecutor
ROLE
Constructor and Description |
---|
ForkedMavenExecutor() |
Modifier and Type | Method and Description |
---|---|
static int |
executeCommandLine(org.codehaus.plexus.util.cli.Commandline cl,
InputStream systemIn,
OutputStream systemOut,
OutputStream systemErr) |
void |
executeGoals(File workingDirectory,
String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
String arguments,
ReleaseResult result)
Execute goals using Maven.
|
void |
executeGoals(File workingDirectory,
String goals,
ReleaseEnvironment releaseEnvironment,
boolean interactive,
String additionalArguments,
String pomFileName,
ReleaseResult relResult)
Execute goals using Maven.
|
void |
setCommandLineFactory(CommandLineFactory commandLineFactory) |
enableLogging, executeGoals, executeGoals, getLogger
public void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String additionalArguments, String pomFileName, ReleaseResult relResult) throws MavenExecutorException
MavenExecutor
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 onMavenExecutorException
- if an error occurred executing Mavenpublic void executeGoals(File workingDirectory, String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, String arguments, ReleaseResult result) throws MavenExecutorException
MavenExecutor
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 commandMavenExecutorException
- if an error occurred executing Mavenpublic void setCommandLineFactory(CommandLineFactory commandLineFactory)
public static int executeCommandLine(org.codehaus.plexus.util.cli.Commandline cl, InputStream systemIn, OutputStream systemOut, OutputStream systemErr) throws org.codehaus.plexus.util.cli.CommandLineException
org.codehaus.plexus.util.cli.CommandLineException
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.