org.apache.maven.continuum.release
Class DefaultContinuumReleaseManager

Package class diagram package DefaultContinuumReleaseManager
java.lang.Object
  extended by org.apache.maven.continuum.release.DefaultContinuumReleaseManager
All Implemented Interfaces:
ContinuumReleaseManager

public class DefaultContinuumReleaseManager
extends Object
implements ContinuumReleaseManager

Version:
$Id: DefaultContinuumReleaseManager.java 781888 2009-06-05 02:06:19Z ctan $
Author:
Jason van Zyl, Edwin Punzalan

Field Summary
 
Fields inherited from interface org.apache.maven.continuum.release.ContinuumReleaseManager
ROLE
 
Constructor Summary
DefaultContinuumReleaseManager()
           
 
Method Summary
 Map<String,ContinuumReleaseManagerListener> getListeners()
           
 Map getPreparedReleases()
           
 Map getReleaseResults()
           
 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)
           
 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

DefaultContinuumReleaseManager

public DefaultContinuumReleaseManager()
Method Detail

prepare

public String prepare(Project project,
                      Properties releaseProperties,
                      Map<String,String> relVersions,
                      Map<String,String> devVersions,
                      ContinuumReleaseManagerListener listener,
                      String workingDirectory)
               throws ContinuumReleaseException
Description copied from interface: ContinuumReleaseManager
Prepare a project for release

Specified by:
prepare in interface ContinuumReleaseManager
Returns:
Throws:
ContinuumReleaseException

prepare

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
Description copied from interface: ContinuumReleaseManager
Prepare a project for release

Specified by:
prepare in interface ContinuumReleaseManager
Returns:
Throws:
ContinuumReleaseException

perform

public void perform(String releaseId,
                    File buildDirectory,
                    String goals,
                    String arguments,
                    boolean useReleaseProfile,
                    ContinuumReleaseManagerListener listener)
             throws ContinuumReleaseException
Description copied from interface: ContinuumReleaseManager
Perform a release based on a given releaseId

Specified by:
perform in interface ContinuumReleaseManager
Throws:
ContinuumReleaseException

perform

public void perform(String releaseId,
                    File buildDirectory,
                    String goals,
                    String arguments,
                    boolean useReleaseProfile,
                    ContinuumReleaseManagerListener listener,
                    LocalRepository repository)
             throws ContinuumReleaseException
Specified by:
perform in interface ContinuumReleaseManager
Throws:
ContinuumReleaseException

perform

public void perform(String releaseId,
                    String workingDirectory,
                    File buildDirectory,
                    String goals,
                    String arguments,
                    boolean useReleaseProfile,
                    ContinuumReleaseManagerListener listener)
             throws ContinuumReleaseException
Description copied from interface: ContinuumReleaseManager
Perform a release based on a release descriptor received by the Maven Release Plugin.

Specified by:
perform in interface ContinuumReleaseManager
Throws:
ContinuumReleaseException

rollback

public void rollback(String releaseId,
                     String workingDirectory,
                     ContinuumReleaseManagerListener listener)
              throws ContinuumReleaseException
Description copied from interface: ContinuumReleaseManager
Rollback changes made by a previous release.

Specified by:
rollback in interface ContinuumReleaseManager
Throws:
ContinuumReleaseException

getPreparedReleases

public Map getPreparedReleases()
Specified by:
getPreparedReleases in interface ContinuumReleaseManager

getReleaseResults

public Map getReleaseResults()
Specified by:
getReleaseResults in interface ContinuumReleaseManager

getListeners

public Map<String,ContinuumReleaseManagerListener> getListeners()
Specified by:
getListeners in interface ContinuumReleaseManager

sanitizeTagName

public String sanitizeTagName(String scmUrl,
                              String tagName)
                       throws Exception
Description copied from interface: ContinuumReleaseManager
Clean up the tagname to respect the scm provider policy.

Specified by:
sanitizeTagName in interface ContinuumReleaseManager
Parameters:
scmUrl - The scm url
tagName - The tag name
Returns:
The cleaned tag name
Throws:
Exception


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.