com.atlassian.bamboo.command
Class AbstractCommandDecorator<T extends Command>

java.lang.Object
  extended by com.atlassian.bamboo.command.AbstractCommandDecorator<T>
Type Parameters:
T - extends Command
All Implemented Interfaces:
CommandDecorator, BambooPluginModule

Deprecated. since 3.1 use TaskProcessCommandDecorator instead

@Deprecated
public abstract class AbstractCommandDecorator<T extends Command>
extends java.lang.Object
implements CommandDecorator


Constructor Summary
protected AbstractCommandDecorator(java.lang.Class<T> commandClass)
          Deprecated.  
 
Method Summary
protected  void addArgument(java.util.List<java.lang.String> args, java.lang.String argument)
          Deprecated. Argument is added to the beginning of command line.
 boolean canDecorate(Command command)
          Deprecated. Given a command, determine whether or not it can be decorated.
protected  BuildContext getBuildContext()
          Deprecated.  
protected  T getCommand()
          Deprecated.  
 void init(BuildContext buildContext)
          Deprecated.  
protected  java.lang.String quoteArgument(java.lang.String argument)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.command.CommandDecorator
decorateArguments
 

Constructor Detail

AbstractCommandDecorator

protected AbstractCommandDecorator(java.lang.Class<T> commandClass)
Deprecated. 
Method Detail

canDecorate

public boolean canDecorate(Command command)
Deprecated. 
Description copied from interface: CommandDecorator
Given a command, determine whether or not it can be decorated. If this method returns false, then the decorateArguments method will not get called.

Specified by:
canDecorate in interface CommandDecorator
Parameters:
command - the command that will be decorated
Returns:
true if the command can be decorated by this Decorator. false otherwise.

init

public void init(BuildContext buildContext)
Deprecated. 
Specified by:
init in interface CommandDecorator

addArgument

protected void addArgument(@NotNull
                           java.util.List<java.lang.String> args,
                           @NotNull
                           java.lang.String argument)
Deprecated. 
Argument is added to the beginning of command line. On Windows the command line might start with /c call script.bat therefore options shall be added starting from index 3

Parameters:
args - Commandline arguments
argument - Argument to be added to commandline

getCommand

@Nullable
protected T getCommand()
Deprecated. 

getBuildContext

@Nullable
protected BuildContext getBuildContext()
Deprecated. 

quoteArgument

@NotNull
protected java.lang.String quoteArgument(@NotNull
                                                 java.lang.String argument)
Deprecated. 


Copyright © 2011 Atlassian. All Rights Reserved.