nl.toolforge.karma.core.cmd.impl
Class PromoteCommand

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.DefaultCommand
      extended bynl.toolforge.karma.core.cmd.impl.PromoteCommand
All Implemented Interfaces:
Command

public class PromoteCommand
extends DefaultCommand

Implementation of the 'codeline freeze' concept. Karma increases a modules' version (using whichever pattern is defined for it), thus allowing for a freeze. Development can commence immediately on the module. In that sense, it is not a freeze, just a tiny hick-up in the development process, as modules are generally small in nature.

Version:
$Id: PromoteCommand.java,v 1.40 2004/11/10 23:53:08 asmedes Exp $
Author:
D.A. Smedes, W.H. Schraal

Field Summary
protected  CommandResponse commandResponse
           
 
Constructor Summary
PromoteCommand(CommandDescriptor descriptor)
           
 
Method Summary
 void execute()
          Promotes a module to the next version number in the branch it is active in within the active manifest.
 CommandResponse getCommandResponse()
          Gets the commands' response object.
protected  Version getNewVersion()
          Returns the new version number for the module, or null when no version number could be set.
 
Methods inherited from class nl.toolforge.karma.core.cmd.DefaultCommand
cleanUp, deregisterCommandResponseListener, getAlias, getCommandLine, getContext, getDescription, getFrontendMessages, getHelp, getName, getResponseListener, getWorkingContext, registerCommandResponseListener, setCommandLine, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandResponse

protected CommandResponse commandResponse
Constructor Detail

PromoteCommand

public PromoteCommand(CommandDescriptor descriptor)
Method Detail

execute

public void execute()
             throws CommandException
Promotes a module to the next version number in the branch it is active in within the active manifest.

Throws:
CommandException - if execution fails.

getCommandResponse

public CommandResponse getCommandResponse()
Gets the commands' response object.

Returns:
The commands' response object.

getNewVersion

protected final Version getNewVersion()
Returns the new version number for the module, or null when no version number could be set.

Returns:
The new version number for the module, or null when no version number could be set.


Copyright © 2002-2004 Toolforge. All Rights Reserved.