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

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.release.phase.AbstractReleasePhase
          extended by org.apache.maven.shared.release.phase.AbstractBackupPomsPhase
              extended by org.apache.maven.shared.release.phase.RestoreBackupPomsPhase
All Implemented Interfaces:
ReleasePhase, org.codehaus.plexus.logging.LogEnabled

public class RestoreBackupPomsPhase
extends AbstractBackupPomsPhase

Author:
Edwin Punzalan

Field Summary
 
Fields inherited from interface org.apache.maven.shared.release.phase.ReleasePhase
ROLE
 
Constructor Summary
RestoreBackupPomsPhase()
           
 
Method Summary
 ReleaseResult execute(ReleaseDescriptor releaseDescriptor, org.apache.maven.settings.Settings settings, java.util.List reactorProjects)
          Execute the phase.
protected  void restorePomBackup(ReleaseDescriptor releaseDescriptor, org.apache.maven.settings.Settings settings, org.apache.maven.project.MavenProject project)
           
 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.apache.maven.shared.release.phase.AbstractBackupPomsPhase
deletePomBackup, getPomBackup
 
Methods inherited from class org.apache.maven.shared.release.phase.AbstractReleasePhase
clean, getReleaseResultSuccess, logDebug, logError, logInfo, logWarn
 
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

RestoreBackupPomsPhase

public RestoreBackupPomsPhase()
Method Detail

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.

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.

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

restorePomBackup

protected void restorePomBackup(ReleaseDescriptor releaseDescriptor,
                                org.apache.maven.settings.Settings settings,
                                org.apache.maven.project.MavenProject project)
                         throws ReleaseExecutionException,
                                ReleaseFailureException
Throws:
ReleaseExecutionException
ReleaseFailureException


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