com.atlassian.bamboo.plugins.grails
Class GrailsCommandDecorator

java.lang.Object
  extended by com.atlassian.bamboo.plugins.grails.GrailsCommandDecorator
All Implemented Interfaces:
CommandDecorator, BambooPluginModule

public class GrailsCommandDecorator
extends java.lang.Object
implements CommandDecorator


Constructor Summary
GrailsCommandDecorator()
           
 
Method Summary
 boolean canDecorate(Command command)
          Given a command, determine whether or not it can be decorated.
 java.util.List<java.lang.String> decorateArguments(java.util.List<java.lang.String> arguments)
          Given a list of command line arguments, return a possibly new list of arguments.
 void init(BuildContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrailsCommandDecorator

public GrailsCommandDecorator()
Method Detail

init

public void init(BuildContext context)
Specified by:
init in interface CommandDecorator

canDecorate

public boolean canDecorate(Command command)
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.

decorateArguments

@NotNull
public java.util.List<java.lang.String> decorateArguments(@NotNull
                                                                  java.util.List<java.lang.String> arguments)
Description copied from interface: CommandDecorator
Given a list of command line arguments, return a possibly new list of arguments. The returned list will be used for building. This method will only be invoked if the CommandDecorator.canDecorate(com.atlassian.bamboo.command.Command) method returns true.

Specified by:
decorateArguments in interface CommandDecorator
Parameters:
arguments - the original list of command line arguments configured in the Builder configuration
Returns:
a possibly modified list of arguments to use for building


Copyright © 2011 Atlassian. All Rights Reserved.