com.atlassian.bamboo.builder.command
Class AbstractCloverCommandDecorator

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

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

A base class for the Clover Command Line Decorators.


Field Summary
protected  com.atlassian.bandana.BandanaManager bandanaManager
           
protected  CapabilityContext capabilityContext
           
static java.lang.String CFG_CLOVER_EXISTS
           
protected  EnvironmentVariableAccessor environmentVariableAccessor
           
 
Constructor Summary
AbstractCloverCommandDecorator()
           
 
Method Summary
protected  boolean canDecorate(TaskContext taskContext)
           
protected  void configureLicense(TaskContext taskContext, com.atlassian.clover.api.ci.CIOptions.Builder options)
           
protected  com.atlassian.clover.api.ci.CIOptions.Builder createOptionsBuilder(TaskContext taskContext)
           
 java.util.List<java.lang.String> decorate(TaskContext taskContext, java.util.List<java.lang.String> arguments)
           
abstract  java.util.List<java.lang.String> decorateCloverArguments(TaskContext taskContext, com.atlassian.clover.api.ci.CIOptions.Builder options, java.util.List<java.lang.String> args)
           
protected  java.util.Map<java.lang.String,java.lang.String> getCustomConfiguration(TaskContext taskContext)
           
protected  java.io.File getLicenseDir(TaskContext taskContext)
           
protected  boolean isEnabled(java.util.Map<java.lang.String,java.lang.String> configuration)
          Check if Clover Command Decorator should be used.
protected  boolean isWindowsPlatform()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setCapabilityContext(CapabilityContext capabilityContext)
           
 void setEnvironmentVariableAccessor(EnvironmentVariableAccessor environmentVariableAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CFG_CLOVER_EXISTS

public static final java.lang.String CFG_CLOVER_EXISTS
See Also:
Constant Field Values

bandanaManager

protected com.atlassian.bandana.BandanaManager bandanaManager

capabilityContext

protected CapabilityContext capabilityContext

environmentVariableAccessor

protected EnvironmentVariableAccessor environmentVariableAccessor
Constructor Detail

AbstractCloverCommandDecorator

public AbstractCloverCommandDecorator()
Method Detail

decorateCloverArguments

@NotNull
public abstract java.util.List<java.lang.String> decorateCloverArguments(@NotNull
                                                                                 TaskContext taskContext,
                                                                                 @NotNull
                                                                                 com.atlassian.clover.api.ci.CIOptions.Builder options,
                                                                                 @NotNull
                                                                                 java.util.List<java.lang.String> args)

decorate

@NotNull
public java.util.List<java.lang.String> decorate(@NotNull
                                                         TaskContext taskContext,
                                                         @NotNull
                                                         java.util.List<java.lang.String> arguments)
Specified by:
decorate in interface TaskProcessCommandDecorator

createOptionsBuilder

protected com.atlassian.clover.api.ci.CIOptions.Builder createOptionsBuilder(@NotNull
                                                                             TaskContext taskContext)

canDecorate

protected boolean canDecorate(@NotNull
                              TaskContext taskContext)

isWindowsPlatform

protected boolean isWindowsPlatform()

getLicenseDir

protected java.io.File getLicenseDir(@NotNull
                                     TaskContext taskContext)

configureLicense

protected void configureLicense(@NotNull
                                TaskContext taskContext,
                                @NotNull
                                com.atlassian.clover.api.ci.CIOptions.Builder options)

isEnabled

protected boolean isEnabled(java.util.Map<java.lang.String,java.lang.String> configuration)
Check if Clover Command Decorator should be used.

Parameters:
configuration -
Returns:
true if Clover Command Decorator should be used

getCustomConfiguration

@NotNull
protected java.util.Map<java.lang.String,java.lang.String> getCustomConfiguration(@NotNull
                                                                                          TaskContext taskContext)

setBandanaManager

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

setCapabilityContext

public void setCapabilityContext(CapabilityContext capabilityContext)

setEnvironmentVariableAccessor

public void setEnvironmentVariableAccessor(EnvironmentVariableAccessor environmentVariableAccessor)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.