com.atlassian.bamboo.builder.command
Class AbstractCloverCommandDecorator

java.lang.Object
  extended by com.atlassian.bamboo.builder.command.AbstractCloverCommandDecorator
All Implemented Interfaces:
CommandDecorator, BambooPluginModule
Direct Known Subclasses:
CloverAntCommandDecorator, CloverGrailsCommandDecorator, CloverMavenCommandDecorator

public abstract class AbstractCloverCommandDecorator
extends java.lang.Object
implements CommandDecorator

A base class for the Clover Command Line Decorators.


Field Summary
protected  com.atlassian.bandana.BandanaManager bandanaManager
           
protected  java.util.Map<java.lang.String,java.lang.String> customConfiguration
           
protected  com.atlassian.clover.api.ci.CIOptions.Builder options
           
 
Constructor Summary
AbstractCloverCommandDecorator()
           
 
Method Summary
 boolean canDecorate(Command command)
          Given a command, determine whether or not it can be decorated.
abstract  boolean cloverCanDecorate(Command command)
           
 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.
abstract  java.util.List<java.lang.String> decorateCloverArguments(java.util.List<java.lang.String> args)
           
 void init(BuildContext context)
           
protected  boolean isEnabled()
          Check if Clover Command Decorator should be used.
protected  boolean isWindows()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customConfiguration

protected java.util.Map<java.lang.String,java.lang.String> customConfiguration

options

protected com.atlassian.clover.api.ci.CIOptions.Builder options

bandanaManager

protected com.atlassian.bandana.BandanaManager bandanaManager
Constructor Detail

AbstractCloverCommandDecorator

public AbstractCloverCommandDecorator()
Method Detail

cloverCanDecorate

public abstract boolean cloverCanDecorate(Command command)

decorateCloverArguments

@NotNull
public abstract java.util.List<java.lang.String> decorateCloverArguments(@NotNull
                                                                                 java.util.List<java.lang.String> args)

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.

init

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

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

isWindows

protected boolean isWindows()

isEnabled

protected boolean isEnabled()
Check if Clover Command Decorator should be used.

Returns:
true if Clover Command Decorator should be used

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)


Copyright © 2010 Atlassian. All Rights Reserved.