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

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.DefaultCommand
      extended bynl.toolforge.karma.core.cmd.CompositeCommand
          extended bynl.toolforge.karma.core.cmd.impl.UpdateAllModulesCommand
All Implemented Interfaces:
Command, CommandResponseListener, java.util.EventListener

public class UpdateAllModulesCommand
extends CompositeCommand

This command updates all modules in the active manifest on a developers' local system.

Version:
$Id: UpdateAllModulesCommand.java,v 1.38 2004/11/16 22:31:57 asmedes Exp $
Author:
D.A. Smedes

Constructor Summary
UpdateAllModulesCommand(CommandDescriptor descriptor)
          Creates a UpdateAllModulesCommand for module module that should be updated.
 
Method Summary
 void execute()
          This command will update all modules in the active manifest from the version control system.
 CommandResponse getCommandResponse()
          Gets the commands' response object.
 
Methods inherited from class nl.toolforge.karma.core.cmd.CompositeCommand
commandFinished, commandStarted, messageLogged
 
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
 

Constructor Detail

UpdateAllModulesCommand

public UpdateAllModulesCommand(CommandDescriptor descriptor)
Creates a UpdateAllModulesCommand for module module that should be updated.

Parameters:
descriptor - The command descriptor for this command.
Method Detail

getCommandResponse

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

Returns:
The commands' response object.

execute

public void execute()
             throws CommandException
This command will update all modules in the active manifest from the version control system. An update is done when the module is already present, otherwise a checkout will be performed. The checkout directory for the module is relative to the root directory of the active manifest.

Throws:
CommandException - When execution failed. This exception catches all underlying exceptions and rethrows them as a CommandException, except for RuntimeExceptions.


Copyright © 2002-2004 Toolforge. All Rights Reserved.