org.apache.maven.plugins.release
Class DefaultReleaseManager

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.plugins.release.DefaultReleaseManager
All Implemented Interfaces:
ReleaseManager, org.codehaus.plexus.logging.LogEnabled

public class DefaultReleaseManager
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ReleaseManager

Implementation of the release manager.

Author:
Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.plugins.release.ReleaseManager
ROLE
 
Constructor Summary
DefaultReleaseManager()
           
 
Method Summary
 void clean(ReleaseConfiguration releaseConfiguration)
          Clean a release.
 void perform(ReleaseConfiguration releaseConfiguration, java.io.File checkoutDirectory, java.lang.String goals, boolean useReleaseProfile)
          Perform a release.
 void prepare(ReleaseConfiguration releaseConfiguration)
          Prepare a release.
 void prepare(ReleaseConfiguration releaseConfiguration, boolean resume, boolean dryRun)
          Prepare a release.
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReleaseManager

public DefaultReleaseManager()
Method Detail

prepare

public void prepare(ReleaseConfiguration releaseConfiguration)
             throws ReleaseExecutionException,
                    ReleaseFailureException
Description copied from interface: ReleaseManager
Prepare a release.

Specified by:
prepare in interface ReleaseManager
Parameters:
releaseConfiguration - the configuration to pass to the preparation steps
Throws:
ReleaseExecutionException - if there is a problem performing the release
ReleaseFailureException - if there is a problem performing the release

prepare

public void prepare(ReleaseConfiguration releaseConfiguration,
                    boolean resume,
                    boolean dryRun)
             throws ReleaseExecutionException,
                    ReleaseFailureException
Description copied from interface: ReleaseManager
Prepare a release.

Specified by:
prepare in interface ReleaseManager
Parameters:
releaseConfiguration - the configuration to pass to the preparation steps
resume - resume a previous release, if the properties file exists
dryRun - do not commit any changes to the file system or SCM
Throws:
ReleaseExecutionException - if there is a problem performing the release
ReleaseFailureException - if there is a problem performing the release

perform

public void perform(ReleaseConfiguration releaseConfiguration,
                    java.io.File checkoutDirectory,
                    java.lang.String goals,
                    boolean useReleaseProfile)
             throws ReleaseExecutionException,
                    ReleaseFailureException
Description copied from interface: ReleaseManager
Perform a release.

Specified by:
perform in interface ReleaseManager
Parameters:
releaseConfiguration - the configuration to use for release
checkoutDirectory - the location to checkout to and build from
goals - the goals to execute
useReleaseProfile - whether to use the release profile from the super POM or not
Throws:
ReleaseExecutionException - if there is a problem performing the release
ReleaseFailureException - if there is a problem performing the release

clean

public void clean(ReleaseConfiguration releaseConfiguration)
Description copied from interface: ReleaseManager
Clean a release.

Specified by:
clean in interface ReleaseManager
Parameters:
releaseConfiguration - the configuration to use for release


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.