|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.continuum.release.DefaultContinuumReleaseManager
public class DefaultContinuumReleaseManager
Field Summary |
---|
Fields inherited from interface org.apache.maven.continuum.release.ContinuumReleaseManager |
---|
ROLE |
Constructor Summary | |
---|---|
DefaultContinuumReleaseManager()
|
Method Summary | |
---|---|
void |
contextualize(org.codehaus.plexus.context.Context context)
|
ReleaseListenerSummary |
getListener(String releaseId)
|
Map<String,ContinuumReleaseManagerListener> |
getListeners()
|
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor |
getPerformReleaseTaskQueueExecutor()
Retrieve the Release TaskQueueExecutor instance |
Map<String,org.apache.maven.shared.release.config.ReleaseDescriptor> |
getPreparedReleases()
|
Map<String,String> |
getPreparedReleasesForProject(String groupId,
String artifactId)
|
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor |
getPrepareReleaseTaskQueueExecutor()
Retrieve the PrepareRelease TaskQueueExecutor instance |
Map |
getReleaseResults()
|
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor |
getRollbackReleaseTaskQueueExecutor()
Retrieve the RollbackRelease TaskQueueExecutor instance |
boolean |
isExecutingRelease()
Determines if there is an ongoing release |
void |
perform(String releaseId,
File buildDirectory,
String goals,
String arguments,
boolean useReleaseProfile,
ContinuumReleaseManagerListener listener)
Perform a release based on a given releaseId |
void |
perform(String releaseId,
File buildDirectory,
String goals,
String arguments,
boolean useReleaseProfile,
ContinuumReleaseManagerListener listener,
LocalRepository repository)
FIXME use a bean to replace such very huge parameter number (ContinuumReleaseRequest) |
void |
perform(String releaseId,
String workingDirectory,
File buildDirectory,
String goals,
String arguments,
boolean useReleaseProfile,
ContinuumReleaseManagerListener listener)
Perform a release based on a release descriptor received by the Maven Release Plugin. |
String |
prepare(Project project,
Properties releaseProperties,
Map<String,String> relVersions,
Map<String,String> devVersions,
ContinuumReleaseManagerListener listener,
String workingDirectory)
Prepare a project for release |
String |
prepare(Project project,
Properties releaseProperties,
Map<String,String> relVersions,
Map<String,String> devVersions,
ContinuumReleaseManagerListener listener,
String workingDirectory,
Map<String,String> environments,
String executable)
Prepare a project for release |
void |
rollback(String releaseId,
String workingDirectory,
ContinuumReleaseManagerListener listener)
Rollback changes made by a previous release. |
String |
sanitizeTagName(String scmUrl,
String tagName)
Clean up the tagname to respect the scm provider policy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultContinuumReleaseManager()
Method Detail |
---|
public String prepare(Project project, Properties releaseProperties, Map<String,String> relVersions, Map<String,String> devVersions, ContinuumReleaseManagerListener listener, String workingDirectory) throws ContinuumReleaseException
ContinuumReleaseManager
prepare
in interface ContinuumReleaseManager
ContinuumReleaseException
public String prepare(Project project, Properties releaseProperties, Map<String,String> relVersions, Map<String,String> devVersions, ContinuumReleaseManagerListener listener, String workingDirectory, Map<String,String> environments, String executable) throws ContinuumReleaseException
ContinuumReleaseManager
prepare
in interface ContinuumReleaseManager
ContinuumReleaseException
public void perform(String releaseId, File buildDirectory, String goals, String arguments, boolean useReleaseProfile, ContinuumReleaseManagerListener listener) throws ContinuumReleaseException
ContinuumReleaseManager
perform
in interface ContinuumReleaseManager
ContinuumReleaseException
public void perform(String releaseId, File buildDirectory, String goals, String arguments, boolean useReleaseProfile, ContinuumReleaseManagerListener listener, LocalRepository repository) throws ContinuumReleaseException
ContinuumReleaseManager
perform
in interface ContinuumReleaseManager
ContinuumReleaseException
public void perform(String releaseId, String workingDirectory, File buildDirectory, String goals, String arguments, boolean useReleaseProfile, ContinuumReleaseManagerListener listener) throws ContinuumReleaseException
ContinuumReleaseManager
perform
in interface ContinuumReleaseManager
ContinuumReleaseException
public void rollback(String releaseId, String workingDirectory, ContinuumReleaseManagerListener listener) throws ContinuumReleaseException
ContinuumReleaseManager
rollback
in interface ContinuumReleaseManager
ContinuumReleaseException
public Map<String,org.apache.maven.shared.release.config.ReleaseDescriptor> getPreparedReleases()
getPreparedReleases
in interface ContinuumReleaseManager
public Map<String,String> getPreparedReleasesForProject(String groupId, String artifactId)
getPreparedReleasesForProject
in interface ContinuumReleaseManager
public Map getReleaseResults()
getReleaseResults
in interface ContinuumReleaseManager
public Map<String,ContinuumReleaseManagerListener> getListeners()
getListeners
in interface ContinuumReleaseManager
public String sanitizeTagName(String scmUrl, String tagName) throws Exception
ContinuumReleaseManager
sanitizeTagName
in interface ContinuumReleaseManager
scmUrl
- The scm urltagName
- The tag name
Exception
public ReleaseListenerSummary getListener(String releaseId)
getListener
in interface ContinuumReleaseManager
public boolean isExecutingRelease() throws Exception
ContinuumReleaseManager
isExecutingRelease
in interface ContinuumReleaseManager
Exception
- if unable to determine if release is ongoingpublic org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor getPerformReleaseTaskQueueExecutor() throws TaskQueueManagerException
ContinuumReleaseManager
getPerformReleaseTaskQueueExecutor
in interface ContinuumReleaseManager
TaskQueueManagerException
- if unable to retrieve the Release TaskQueueExecutor instancepublic org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor getPrepareReleaseTaskQueueExecutor() throws TaskQueueManagerException
ContinuumReleaseManager
getPrepareReleaseTaskQueueExecutor
in interface ContinuumReleaseManager
TaskQueueManagerException
- if unable to retrieve the PrepareRelease TaskQueueExecutor instancepublic org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor getRollbackReleaseTaskQueueExecutor() throws TaskQueueManagerException
ContinuumReleaseManager
getRollbackReleaseTaskQueueExecutor
in interface ContinuumReleaseManager
TaskQueueManagerException
- if unable to retrieve the RollbackRelease TaskQueueExecutor instancepublic void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |