@Singleton @Named public class DefaultReleaseManager extends Object implements ReleaseManager
| Constructor and Description | 
|---|
| DefaultReleaseManager(Map<String,Strategy> strategies,
                     Map<String,ReleasePhase> releasePhases,
                     ReleaseDescriptorStore configStore) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | branch(ReleaseBranchRequest branchRequest)Branch a project | 
| protected void | clean(AbstractReleaseRequest releaseRequest)clean. | 
| void | clean(ReleaseCleanRequest cleanRequest)Clean a release. | 
| protected File | determineWorkingDirectory(File checkoutDirectory,
                         String relativePathProjectDirectory)Determines the path of the working directory. | 
| void | perform(ReleasePerformRequest performRequest)Perform a release | 
| ReleaseResult | performWithResult(ReleasePerformRequest performRequest)performWithResult. | 
| void | prepare(ReleasePrepareRequest prepareRequest)Prepare a release. | 
| ReleaseResult | prepareWithResult(ReleasePrepareRequest prepareRequest)prepareWithResult. | 
| void | rollback(ReleaseRollbackRequest rollbackRequest)Rollback changes made by the previous release | 
| void | setConfigStore(ReleaseDescriptorStore configStore)For easier testing only! | 
| void | updateVersions(ReleaseUpdateVersionsRequest updateVersionsRequest)Update version numbers for a project | 
@Inject public DefaultReleaseManager(Map<String,Strategy> strategies, Map<String,ReleasePhase> releasePhases, @Named(value="properties") ReleaseDescriptorStore configStore)
public void setConfigStore(ReleaseDescriptorStore configStore)
public ReleaseResult prepareWithResult(ReleasePrepareRequest prepareRequest)
ReleaseManagerprepareWithResult.
prepareWithResult in interface ReleaseManagerprepareRequest - a ReleasePrepareRequest objectReleaseResult objectpublic void prepare(ReleasePrepareRequest prepareRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManagerprepare in interface ReleaseManagerprepareRequest - all prepare argumentsReleaseExecutionException - if there is a problem performing the releaseReleaseFailureException - if there is a problem performing the releasepublic void rollback(ReleaseRollbackRequest rollbackRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManagerrollback in interface ReleaseManagerrollbackRequest - all rollback argumentsReleaseExecutionException - if there is a problem during release rollbackReleaseFailureException - if there is a problem during release rollbackpublic ReleaseResult performWithResult(ReleasePerformRequest performRequest)
ReleaseManagerperformWithResult.
performWithResult in interface ReleaseManagerperformRequest - a ReleasePerformRequest objectReleaseResult objectpublic void perform(ReleasePerformRequest performRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManagerperform in interface ReleaseManagerperformRequest - all perform argumentsReleaseExecutionException - if there is a problem performing the releaseReleaseFailureException - if there is a problem performing the releasepublic void branch(ReleaseBranchRequest branchRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManagerbranch in interface ReleaseManagerbranchRequest - all branch argumentsReleaseExecutionException - if there is a problem during release branchReleaseFailureException - if there is a problem during release branchpublic void updateVersions(ReleaseUpdateVersionsRequest updateVersionsRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManagerupdateVersions in interface ReleaseManagerupdateVersionsRequest - all update versions argumentsReleaseExecutionException - if there is a problem during update versionsReleaseFailureException - if there is a problem during update versionsprotected File determineWorkingDirectory(File checkoutDirectory, String relativePathProjectDirectory)
checkoutDirectory - The checkout directory as java.io.FilerelativePathProjectDirectory - The relative path of the project directory within the checkout
                                     directory or ""protected void clean(AbstractReleaseRequest releaseRequest) throws ReleaseFailureException
clean.
releaseRequest - a AbstractReleaseRequest objectReleaseFailureException - if any.public void clean(ReleaseCleanRequest cleanRequest) throws ReleaseFailureException
ReleaseManagerclean in interface ReleaseManagercleanRequest - all clean argumentsReleaseFailureException - if exception when releasingCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.