Class AbstractCloverCommandDecorator
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description protected com.atlassian.bandana.BandanaManager
bandanaManager
protected CapabilityContext
capabilityContext
static String
CFG_CLOVER_EXISTS
protected EnvironmentVariableAccessor
environmentVariableAccessor
-
Constructor Summary
Constructors Constructor Description AbstractCloverCommandDecorator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
canDecorate(@NotNull TaskContext taskContext)
protected com.atlassian.clover.api.ci.CIOptions.Builder
createOptionsBuilder(@NotNull TaskContext taskContext)
@NotNull List<String>
decorate(@NotNull TaskContext taskContext, @NotNull List<String> arguments)
abstract @NotNull List<String>
decorateCloverArguments(@NotNull TaskContext taskContext, com.atlassian.clover.api.ci.CIOptions.Builder options, @NotNull List<String> args)
protected @NotNull Map<String,String>
getCustomConfiguration(@NotNull 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)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setCapabilityContext(CapabilityContext capabilityContext)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setEnvironmentVariableAccessor(EnvironmentVariableAccessor environmentVariableAccessor)
Deprecated.since 6.8 use constructor injection or annotation injection
-
-
-
Field Detail
-
CFG_CLOVER_EXISTS
public static final String CFG_CLOVER_EXISTS
- See Also:
- Constant Field Values
-
bandanaManager
@Inject protected com.atlassian.bandana.BandanaManager bandanaManager
-
capabilityContext
@Inject protected CapabilityContext capabilityContext
-
environmentVariableAccessor
@Inject protected EnvironmentVariableAccessor environmentVariableAccessor
-
-
Method Detail
-
decorateCloverArguments
@NotNull public abstract @NotNull List<String> decorateCloverArguments(@NotNull @NotNull TaskContext taskContext, @NotNull com.atlassian.clover.api.ci.CIOptions.Builder options, @NotNull @NotNull List<String> args)
-
decorate
@NotNull public @NotNull List<String> decorate(@NotNull @NotNull TaskContext taskContext, @NotNull @NotNull List<String> arguments)
- Specified by:
decorate
in interfaceTaskProcessCommandDecorator
-
createOptionsBuilder
protected com.atlassian.clover.api.ci.CIOptions.Builder createOptionsBuilder(@NotNull @NotNull TaskContext taskContext)
-
canDecorate
protected boolean canDecorate(@NotNull @NotNull TaskContext taskContext)
-
isWindowsPlatform
protected boolean isWindowsPlatform()
-
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 @NotNull Map<String,String> getCustomConfiguration(@NotNull @NotNull TaskContext taskContext)
-
setBandanaManager
@Deprecated public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setCapabilityContext
@Deprecated public void setCapabilityContext(CapabilityContext capabilityContext)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setEnvironmentVariableAccessor
@Deprecated public void setEnvironmentVariableAccessor(EnvironmentVariableAccessor environmentVariableAccessor)
Deprecated.since 6.8 use constructor injection or annotation injection
-
-