org.apache.maven.shared.release.phase
Class AbstractRunGoalsPhase

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.release.phase.AbstractReleasePhase
          extended by org.apache.maven.shared.release.phase.AbstractRunGoalsPhase
All Implemented Interfaces:
ReleasePhase, org.codehaus.plexus.logging.LogEnabled
Direct Known Subclasses:
RunCompleteGoalsPhase, RunPerformGoalsPhase, RunPrepareGoalsPhase

public abstract class AbstractRunGoalsPhase
extends AbstractReleasePhase

Run the integration tests for the project to verify that it builds before committing.

Author:
Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
ROLE
 
Constructor Summary
AbstractRunGoalsPhase()
           
 
Method Summary
protected  File determineWorkingDirectory(File checkoutDirectory, String relativePathProjectDirectory)
          Determines the path of the working directory.
 ReleaseResult execute(ReleaseDescriptor releaseDescriptor, File workingDirectory, String additionalArguments)
          Deprecated. Use execute(ReleaseDescriptor, ReleaseEnvironment, File, String) instead.
 ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, File workingDirectory, String additionalArguments)
           
protected abstract  String getGoals(ReleaseDescriptor releaseDescriptor)
           
 void setMavenExecutor(MavenExecutor mavenExecutor)
          Deprecated. Use setMavenExecutor(String, MavenExecutor) instead.
 void setMavenExecutor(String id, MavenExecutor executor)
           
 
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
clean, execute, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn, simulate
 
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
 
Methods inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
execute, simulate
 

Constructor Detail

AbstractRunGoalsPhase

public AbstractRunGoalsPhase()
Method Detail

execute

public ReleaseResult execute(ReleaseDescriptor releaseDescriptor,
                             File workingDirectory,
                             String additionalArguments)
                      throws ReleaseExecutionException
Deprecated. Use execute(ReleaseDescriptor, ReleaseEnvironment, File, String) instead.

Throws:
ReleaseExecutionException

execute

public ReleaseResult execute(ReleaseDescriptor releaseDescriptor,
                             ReleaseEnvironment releaseEnvironment,
                             File workingDirectory,
                             String additionalArguments)
                      throws ReleaseExecutionException
Throws:
ReleaseExecutionException

setMavenExecutor

public void setMavenExecutor(MavenExecutor mavenExecutor)
Deprecated. Use setMavenExecutor(String, MavenExecutor) instead.


setMavenExecutor

public void setMavenExecutor(String id,
                             MavenExecutor executor)

getGoals

protected abstract String getGoals(ReleaseDescriptor releaseDescriptor)

determineWorkingDirectory

protected File determineWorkingDirectory(File checkoutDirectory,
                                         String relativePathProjectDirectory)
Determines the path of the working directory. By default, this is the checkout directory. For some SCMs, the project root directory is not the checkout directory itself, but a SCM-specific subdirectory.

Parameters:
checkoutDirectory - The checkout directory as java.io.File
relativePathProjectDirectory - The relative path of the project directory within the checkout directory or ""
Returns:
The working directory


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.