org.apache.maven.shared.release.phase
Class AbstractReleasePhase

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.release.phase.AbstractReleasePhase
All Implemented Interfaces:
ReleasePhase, org.codehaus.plexus.logging.LogEnabled
Direct Known Subclasses:
AbstractBackupPomsPhase, AbstractReleasePomsPhase, AbstractRewritePomsPhase, AbstractRunGoalsPhase, CheckCompletedPreparePhasesPhase, CheckDependencySnapshotsPhase, CheckoutProjectFromScm, CheckPomPhase, EndReleasePhase, InputVariablesPhase, MapVersionsPhase, RemoveScmTagPhase, ScmBranchPhase, ScmCheckModificationsPhase, ScmCommitPhase, ScmTagPhase

public abstract class AbstractReleasePhase
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ReleasePhase

Base class for all phases.

Author:
Brett Porter

Field Summary
 
Fields inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
ROLE
 
Constructor Summary
AbstractReleasePhase()
           
 
Method Summary
 ReleaseResult clean(java.util.List reactorProjects)
          Clean up after a phase if it leaves any additional files in the checkout.
 ReleaseResult execute(ReleaseDescriptor releaseDescriptor, org.apache.maven.settings.Settings settings, java.util.List reactorProjects)
          Execute the phase.
protected  ReleaseResult getReleaseResultSuccess()
           
protected  void logDebug(ReleaseResult result, java.lang.String message, java.lang.Exception e)
           
protected  void logError(ReleaseResult result, java.lang.String message)
           
protected  void logInfo(ReleaseResult result, java.lang.String message)
           
protected  void logWarn(ReleaseResult result, java.lang.String message)
           
 ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, org.apache.maven.settings.Settings settings, java.util.List reactorProjects)
          Simulate the phase, but don't make any changes to the project.
 
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
 
Methods inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
execute, simulate
 

Constructor Detail

AbstractReleasePhase

public AbstractReleasePhase()
Method Detail

clean

public ReleaseResult clean(java.util.List reactorProjects)
Description copied from interface: ReleasePhase
Clean up after a phase if it leaves any additional files in the checkout.

Specified by:
clean in interface ReleasePhase
Parameters:
reactorProjects - the reactor projects

execute

public ReleaseResult execute(ReleaseDescriptor releaseDescriptor,
                             org.apache.maven.settings.Settings settings,
                             java.util.List reactorProjects)
                      throws ReleaseExecutionException,
                             ReleaseFailureException
Description copied from interface: ReleasePhase
Execute the phase.

Specified by:
execute in interface ReleasePhase
Parameters:
releaseDescriptor - the configuration to use
settings - the settings.xml configuration
reactorProjects - the reactor projects
Throws:
ReleaseExecutionException - an exception during the execution of the phase
ReleaseFailureException - a failure during the execution of the phase

simulate

public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor,
                              org.apache.maven.settings.Settings settings,
                              java.util.List reactorProjects)
                       throws ReleaseExecutionException,
                              ReleaseFailureException
Description copied from interface: ReleasePhase
Simulate the phase, but don't make any changes to the project.

Specified by:
simulate in interface ReleasePhase
Parameters:
releaseDescriptor - the configuration to use
settings - the settings.xml configuration
reactorProjects - the reactor projects
Throws:
ReleaseExecutionException - an exception during the execution of the phase
ReleaseFailureException - a failure during the execution of the phase

logInfo

protected void logInfo(ReleaseResult result,
                       java.lang.String message)

logWarn

protected void logWarn(ReleaseResult result,
                       java.lang.String message)

logError

protected void logError(ReleaseResult result,
                        java.lang.String message)

logDebug

protected void logDebug(ReleaseResult result,
                        java.lang.String message,
                        java.lang.Exception e)

getReleaseResultSuccess

protected ReleaseResult getReleaseResultSuccess()


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