@Component(role=ReleaseManager.class) public class DefaultReleaseManager extends org.codehaus.plexus.logging.AbstractLogEnabled implements ReleaseManager
Constructor and Description |
---|
DefaultReleaseManager() |
Modifier and Type | Method and Description |
---|---|
void |
branch(ReleaseBranchRequest branchRequest)
Branch a project
|
protected void |
clean(AbstractReleaseRequest releaseRequest) |
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) |
void |
prepare(ReleasePrepareRequest prepareRequest)
Prepare a release.
|
ReleaseResult |
prepareWithResult(ReleasePrepareRequest prepareRequest) |
void |
rollback(ReleaseRollbackRequest rollbackRequest)
Rollback changes made by the previous release
|
void |
updateVersions(ReleaseUpdateVersionsRequest updateVersionsRequest)
Update version numbers for a project
|
public ReleaseResult prepareWithResult(ReleasePrepareRequest prepareRequest)
prepareWithResult
in interface ReleaseManager
public 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)
performWithResult
in interface ReleaseManager
public 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
ReleaseFailureException
public void clean(ReleaseCleanRequest cleanRequest) throws ReleaseFailureException
ReleaseManager
clean
in interface ReleaseManager
cleanRequest
- all clean argumentsReleaseFailureException
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.