org.apache.maven.shared.release.exec
Class InvokerMavenExecutor

java.lang.Object
  extended by org.apache.maven.shared.release.exec.AbstractMavenExecutor
      extended by org.apache.maven.shared.release.exec.InvokerMavenExecutor
All Implemented Interfaces:
MavenExecutor, org.codehaus.plexus.logging.LogEnabled

public class InvokerMavenExecutor
extends AbstractMavenExecutor

Fork Maven using the maven-invoker shared library.


Field Summary
 
Fields inherited from interface org.apache.maven.shared.release.exec.MavenExecutor
ROLE
 
Constructor Summary
InvokerMavenExecutor()
           
 
Method Summary
 void executeGoals(java.io.File workingDirectory, java.lang.String goals, ReleaseEnvironment releaseEnvironment, boolean interactive, java.lang.String additionalArguments, 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 result)
          Execute goals using Maven.
 
Methods inherited from class org.apache.maven.shared.release.exec.AbstractMavenExecutor
enableLogging, executeGoals, executeGoals, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokerMavenExecutor

public InvokerMavenExecutor()
Method Detail

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 result)
                  throws MavenExecutorException
Description copied from interface: MavenExecutor
Execute goals using Maven.

Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
releaseEnvironment - the environmental settings, maven-home, etc used for this release
interactive - whether to execute in interactive mode, or the default batch mode
additionalArguments - additional arguments to pass to the Maven command
pomFileName - 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 additionalArguments,
                         ReleaseResult result)
                  throws MavenExecutorException
Description copied from interface: MavenExecutor
Execute goals using Maven.

Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
releaseEnvironment - the environmental settings, maven-home, etc used for this release
interactive - whether to execute in interactive mode, or the default batch mode
additionalArguments - additional arguments to pass to the Maven command
Throws:
MavenExecutorException - if an error occurred executing Maven


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.