hudson.plugins.synergy.impl
Class UpdateCommand

java.lang.Object
  extended by hudson.plugins.synergy.impl.Command
      extended by hudson.plugins.synergy.impl.UpdateCommand

public class UpdateCommand
extends Command

Builds an update workarea command.

Author:
jrbe

Constructor Summary
UpdateCommand(java.lang.String project, boolean replaceSubprojects)
           
 
Method Summary
 java.lang.String[] buildCommand(java.lang.String ccmExe)
          Return the Synergy command line to execute as an array.
 java.util.Collection<Conflict> getConflicts()
           
 java.util.List<java.lang.String> getUpdates()
           
 boolean isStatusOK(int status)
          Return true if the given return status is ok for the command.
 boolean isUpdateWarningsExists()
           
 void parseResult(java.lang.String result)
          Parse the command result.
 
Methods inherited from class hudson.plugins.synergy.impl.Command
buildMask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateCommand

public UpdateCommand(java.lang.String project,
                     boolean replaceSubprojects)
Method Detail

parseResult

public void parseResult(java.lang.String result)
Description copied from class: Command
Parse the command result.

Specified by:
parseResult in class Command

buildCommand

public java.lang.String[] buildCommand(java.lang.String ccmExe)
Description copied from class: Command
Return the Synergy command line to execute as an array. The line must start with the ccmExe location, which is given as the first method parameter.

Specified by:
buildCommand in class Command

getUpdates

public java.util.List<java.lang.String> getUpdates()

isStatusOK

public boolean isStatusOK(int status)
Description copied from class: Command
Return true if the given return status is ok for the command. The default is to return true if the status is 0 or 1.

Overrides:
isStatusOK in class Command

getConflicts

public java.util.Collection<Conflict> getConflicts()

isUpdateWarningsExists

public boolean isUpdateWarningsExists()


Copyright © 2008-2009. All Rights Reserved.