Class AbstractRunGoalsPhase
java.lang.Object
org.apache.maven.shared.release.phase.AbstractReleasePhase
org.apache.maven.shared.release.phase.AbstractRunGoalsPhase
- All Implemented Interfaces:
ReleasePhase
- Direct Known Subclasses:
RunCompleteGoalsPhase,RunPerformGoalsPhase,RunPrepareGoalsPhase
Abstract phase to run a Maven invocation on the project.
- Author:
- Brett Porter
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRunGoalsPhase(Map<String, MavenExecutor> mavenExecutors) -
Method Summary
Modifier and TypeMethodDescriptionprotected FiledetermineWorkingDirectory(File checkoutDirectory, String relativePathProjectDirectory) Determines the path of the working directory.protected ReleaseResultexecute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, File workingDirectory, String additionalArguments, boolean logArguments) protected ReleaseResultexecute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects, boolean logArguments) protected StringgetAdditionalArguments(ReleaseDescriptor releaseDescriptor) protected abstract StringgetGoals(ReleaseDescriptor releaseDescriptor) Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
getLogger, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
execute, simulate
-
Constructor Details
-
AbstractRunGoalsPhase
-
-
Method Details
-
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.FilerelativePathProjectDirectory- The relative path of the project directory within the checkout directory or ""- Returns:
- The working directory