Class AbstractRunGoalsPhase
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.apache.maven.shared.release.phase.AbstractReleasePhase
-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,MavenExecutor>
mavenExecutors
Component to assist in executing Maven.
-
Constructor Summary
Constructors Constructor Description AbstractRunGoalsPhase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.io.File
determineWorkingDirectory(java.io.File checkoutDirectory, java.lang.String relativePathProjectDirectory)
Determines the path of the working directory.ReleaseResult
execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.io.File workingDirectory, java.lang.String additionalArguments)
protected java.lang.String
getAdditionalArguments(ReleaseDescriptor releaseDescriptor)
protected abstract java.lang.String
getGoals(ReleaseDescriptor releaseDescriptor)
-
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
-
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
-
-
-
-
Field Detail
-
mavenExecutors
@Requirement(role=MavenExecutor.class) private java.util.Map<java.lang.String,MavenExecutor> mavenExecutors
Component to assist in executing Maven.
-
-
Method Detail
-
execute
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, java.io.File workingDirectory, java.lang.String additionalArguments) throws ReleaseExecutionException
- Throws:
ReleaseExecutionException
-
getGoals
protected abstract java.lang.String getGoals(ReleaseDescriptor releaseDescriptor)
-
getAdditionalArguments
protected java.lang.String getAdditionalArguments(ReleaseDescriptor releaseDescriptor)
-
determineWorkingDirectory
protected java.io.File determineWorkingDirectory(java.io.File checkoutDirectory, java.lang.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.FilerelativePathProjectDirectory
- The relative path of the project directory within the checkout directory or ""- Returns:
- The working directory
-
-