com.atlassian.bamboo.clover.builder.command
Class AbstractCloverCommandDecorator

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

public abstract class AbstractCloverCommandDecorator
extends Object
implements TaskProcessCommandDecorator

A base class for the Clover Command Line Decorators.


Field Summary
protected  com.atlassian.bandana.BandanaManager bandanaManager
           
protected  CapabilityContext capabilityContext
           
static 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)
           
 List<String> decorate(TaskContext taskContext, List<String> arguments)
           
abstract  List<String> decorateCloverArguments(TaskContext taskContext, com.atlassian.clover.api.ci.CIOptions.Builder options, List<String> args)
           
protected  Map<String,String> getCustomConfiguration(TaskContext taskContext)
           
protected  File getLicenseDir(TaskContext taskContext)
           
protected  boolean isEnabled(Map<String,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 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 List<String> decorateCloverArguments(@NotNull
                                                             TaskContext taskContext,
                                                             @NotNull
                                                             com.atlassian.clover.api.ci.CIOptions.Builder options,
                                                             @NotNull
                                                             List<String> args)

decorate

@NotNull
public List<String> decorate(@NotNull
                                     TaskContext taskContext,
                                     @NotNull
                                     List<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 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(Map<String,String> configuration)
Check if Clover Command Decorator should be used.

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

getCustomConfiguration

@NotNull
protected Map<String,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 © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.