public abstract class AbstractScmCommitPhase extends AbstractReleasePhase
Modifier and Type | Field and Description |
---|---|
protected String |
descriptorCommentGetter
The getter in the descriptor for the comment.
|
protected ScmRepositoryConfigurator |
scmRepositoryConfigurator
Tool that gets a configured SCM repository from release configuration.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractScmCommitPhase(ScmRepositoryConfigurator scmRepositoryConfigurator,
String descriptorCommentGetter) |
Modifier and Type | Method and Description |
---|---|
protected String |
createMessage(List<org.apache.maven.project.MavenProject> reactorProjects,
ReleaseDescriptor releaseDescriptor)
createMessage.
|
protected static List<File> |
createPomFiles(ReleaseDescriptor releaseDescriptor,
List<org.apache.maven.project.MavenProject> reactorProjects)
createPomFiles.
|
protected static List<File> |
createPomFiles(ReleaseDescriptor releaseDescriptor,
org.apache.maven.project.MavenProject project)
createPomFiles.
|
ReleaseResult |
execute(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<org.apache.maven.project.MavenProject> reactorProjects) |
protected void |
performCheckins(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<org.apache.maven.project.MavenProject> reactorProjects,
String message)
performCheckins.
|
protected abstract void |
runLogic(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<org.apache.maven.project.MavenProject> reactorProjects,
ReleaseResult result,
boolean simulating)
runLogic.
|
ReleaseResult |
simulate(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<org.apache.maven.project.MavenProject> reactorProjects) |
protected void |
simulateCheckins(ReleaseDescriptor releaseDescriptor,
List<org.apache.maven.project.MavenProject> reactorProjects,
ReleaseResult result,
String message)
simulateCheckins.
|
protected void |
validateConfiguration(ReleaseDescriptor releaseDescriptor)
validateConfiguration.
|
getLogger, getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
protected final ScmRepositoryConfigurator scmRepositoryConfigurator
protected final String descriptorCommentGetter
protected AbstractScmCommitPhase(ScmRepositoryConfigurator scmRepositoryConfigurator, String descriptorCommentGetter)
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
protected abstract void runLogic(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects, ReleaseResult result, boolean simulating) throws ReleaseScmCommandException, ReleaseExecutionException, ReleaseScmRepositoryException
runLogic.
releaseDescriptor
- a ReleaseDescriptor
objectreleaseEnvironment
- a ReleaseEnvironment
objectreactorProjects
- a List
objectresult
- a ReleaseResult
objectsimulating
- a booleanReleaseScmCommandException
- if any.ReleaseExecutionException
- if any.ReleaseScmRepositoryException
- if any.protected void performCheckins(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<org.apache.maven.project.MavenProject> reactorProjects, String message) throws ReleaseScmRepositoryException, ReleaseExecutionException, ReleaseScmCommandException
performCheckins.
releaseDescriptor
- a ReleaseDescriptor
objectreleaseEnvironment
- a ReleaseEnvironment
objectreactorProjects
- a List
objectmessage
- a String
objectReleaseScmRepositoryException
- if any.ReleaseExecutionException
- if any.ReleaseScmCommandException
- if any.protected void simulateCheckins(ReleaseDescriptor releaseDescriptor, List<org.apache.maven.project.MavenProject> reactorProjects, ReleaseResult result, String message)
simulateCheckins.
releaseDescriptor
- a ReleaseDescriptor
objectreactorProjects
- a List
objectresult
- a ReleaseResult
objectmessage
- a String
objectprotected void validateConfiguration(ReleaseDescriptor releaseDescriptor) throws ReleaseFailureException
validateConfiguration.
releaseDescriptor
- a ReleaseDescriptor
objectReleaseFailureException
- if any.protected String createMessage(List<org.apache.maven.project.MavenProject> reactorProjects, ReleaseDescriptor releaseDescriptor) throws ReleaseExecutionException
createMessage.
reactorProjects
- a List
objectreleaseDescriptor
- a ReleaseDescriptor
objectString
objectReleaseExecutionException
- if any.protected static List<File> createPomFiles(ReleaseDescriptor releaseDescriptor, org.apache.maven.project.MavenProject project)
createPomFiles.
releaseDescriptor
- a ReleaseDescriptor
objectproject
- a MavenProject
objectList
objectprotected static List<File> createPomFiles(ReleaseDescriptor releaseDescriptor, List<org.apache.maven.project.MavenProject> reactorProjects)
createPomFiles.
releaseDescriptor
- a ReleaseDescriptor
objectreactorProjects
- a List
objectList
objectCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.