org.apache.maven.plugins.release.exec
Class ForkedMavenExecutor

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.plugins.release.exec.ForkedMavenExecutor
All Implemented Interfaces:
MavenExecutor, org.codehaus.plexus.logging.LogEnabled

public class ForkedMavenExecutor
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenExecutor

Fork Maven to executed a series of goals.

Author:
Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.plugins.release.exec.MavenExecutor
ROLE
 
Constructor Summary
ForkedMavenExecutor()
           
 
Method Summary
 void executeGoals(java.io.File workingDirectory, java.lang.String goals, boolean interactive, java.lang.String arguments)
          Execute goals using Maven.
 void executeGoals(java.io.File workingDirectory, java.lang.String goals, boolean interactive, java.lang.String additionalArguments, java.lang.String pomFileName)
          Execute goals using Maven.
 void setCommandLineFactory(CommandLineFactory commandLineFactory)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForkedMavenExecutor

public ForkedMavenExecutor()
Method Detail

executeGoals

public void executeGoals(java.io.File workingDirectory,
                         java.lang.String goals,
                         boolean interactive,
                         java.lang.String additionalArguments,
                         java.lang.String pomFileName)
                  throws MavenExecutorException
Description copied from interface: MavenExecutor
Execute goals using Maven.

Specified by:
executeGoals in interface MavenExecutor
Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
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,
                         boolean interactive,
                         java.lang.String arguments)
                  throws MavenExecutorException
Description copied from interface: MavenExecutor
Execute goals using Maven.

Specified by:
executeGoals in interface MavenExecutor
Parameters:
workingDirectory - the directory to execute in
goals - the goals to run (space delimited)
interactive - whether to execute in interactive mode, or the default batch mode
arguments - additional arguments to pass to the Maven command
Throws:
MavenExecutorException - if an error occurred executing Maven

setCommandLineFactory

public void setCommandLineFactory(CommandLineFactory commandLineFactory)


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