@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)
ReleaseManager
prepareWithResult.
prepareWithResult
in interface ReleaseManager
prepareRequest
- a ReleasePrepareRequest
objectReleaseResult
objectpublic void prepare(ReleasePrepareRequest prepareRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManager
prepare
in interface ReleaseManager
prepareRequest
- 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
ReleaseManager
rollback
in interface ReleaseManager
rollbackRequest
- all rollback argumentsReleaseExecutionException
- if there is a problem during release rollbackReleaseFailureException
- if there is a problem during release rollbackpublic ReleaseResult performWithResult(ReleasePerformRequest performRequest)
ReleaseManager
performWithResult.
performWithResult
in interface ReleaseManager
performRequest
- a ReleasePerformRequest
objectReleaseResult
objectpublic void perform(ReleasePerformRequest performRequest) throws ReleaseExecutionException, ReleaseFailureException
ReleaseManager
perform
in interface ReleaseManager
performRequest
- 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
ReleaseManager
branch
in interface ReleaseManager
branchRequest
- 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
ReleaseManager
updateVersions
in interface ReleaseManager
updateVersionsRequest
- 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
ReleaseManager
clean
in interface ReleaseManager
cleanRequest
- all clean argumentsReleaseFailureException
- if exception when releasingCopyright © 2002–2024 The Apache Software Foundation. All rights reserved.