com.atlassian.bamboo.plugins.ant.task
Class AntConfig

java.lang.Object
  extended by com.atlassian.bamboo.plugins.ant.task.AntConfig
Direct Known Subclasses:
CloverAntConfig

public class AntConfig
extends java.lang.Object


Field Summary
static java.lang.String ANT_CAPABILITY_PREFIX
           
protected static java.lang.String ANT_EXECUTABLE_NAME_UNIX
           
protected static java.lang.String ANT_EXECUTABLE_NAME_WINDOWS
           
protected  java.lang.String builderLabel
           
protected  java.lang.String builderPath
           
protected  java.lang.String buildFile
           
static java.lang.String CFG_BUILD_FILE
           
static java.lang.String CFG_BUILDER_LABEL
           
protected static java.lang.String CFG_ENVIRONMENT_VARIABLES
           
protected static java.lang.String CFG_HAS_TESTS
           
static java.lang.String CFG_JDK_LABEL
           
static java.lang.String CFG_TARGETS
           
protected static java.lang.String CFG_TEST_RESULTS_FILE_PATTERN
           
protected  java.lang.String environmentVariables
           
protected  java.util.Map<java.lang.String,java.lang.String> extraEnvironment
           
protected  boolean hasTests
           
protected  java.lang.String jdkLabel
           
protected  java.util.List<java.lang.String> targets
           
protected  java.lang.String testResultsFilePattern
           
protected  java.io.File workingDirectory
           
 
Constructor Summary
AntConfig(TaskContext taskContext, CapabilityContext capabilityContext, EnvironmentVariableAccessor environmentVariableAccessor)
           
 
Method Summary
protected  java.lang.String getAntExecutableName()
           
protected  java.lang.String getAntExecutablePath(java.lang.String homePath)
           
 java.util.List<java.lang.String> getCommandline()
           
 java.util.Map<java.lang.String,java.lang.String> getExtraEnvironment()
           
 java.lang.String getFirstTarget()
           
 java.lang.String getTestResultsFilePattern()
           
 java.io.File getWorkingDirectory()
           
 boolean isHasTests()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CFG_BUILD_FILE

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

CFG_BUILDER_LABEL

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

CFG_ENVIRONMENT_VARIABLES

protected static final java.lang.String CFG_ENVIRONMENT_VARIABLES
See Also:
Constant Field Values

CFG_HAS_TESTS

protected static final java.lang.String CFG_HAS_TESTS
See Also:
Constant Field Values

CFG_JDK_LABEL

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

CFG_TARGETS

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

CFG_TEST_RESULTS_FILE_PATTERN

protected static final java.lang.String CFG_TEST_RESULTS_FILE_PATTERN
See Also:
Constant Field Values

ANT_CAPABILITY_PREFIX

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

ANT_EXECUTABLE_NAME_UNIX

protected static final java.lang.String ANT_EXECUTABLE_NAME_UNIX
See Also:
Constant Field Values

ANT_EXECUTABLE_NAME_WINDOWS

protected static final java.lang.String ANT_EXECUTABLE_NAME_WINDOWS
See Also:
Constant Field Values

builderLabel

protected final java.lang.String builderLabel

builderPath

protected final java.lang.String builderPath

buildFile

protected final java.lang.String buildFile

environmentVariables

protected final java.lang.String environmentVariables

hasTests

protected final boolean hasTests

jdkLabel

protected final java.lang.String jdkLabel

targets

protected final java.util.List<java.lang.String> targets

testResultsFilePattern

protected final java.lang.String testResultsFilePattern

workingDirectory

protected final java.io.File workingDirectory

extraEnvironment

protected final java.util.Map<java.lang.String,java.lang.String> extraEnvironment
Constructor Detail

AntConfig

public AntConfig(@NotNull
                 TaskContext taskContext,
                 @NotNull
                 CapabilityContext capabilityContext,
                 @NotNull
                 EnvironmentVariableAccessor environmentVariableAccessor)
Method Detail

getAntExecutableName

@NotNull
protected java.lang.String getAntExecutableName()

getAntExecutablePath

protected java.lang.String getAntExecutablePath(java.lang.String homePath)

getFirstTarget

public java.lang.String getFirstTarget()

getCommandline

public java.util.List<java.lang.String> getCommandline()

getExtraEnvironment

public java.util.Map<java.lang.String,java.lang.String> getExtraEnvironment()

getWorkingDirectory

public java.io.File getWorkingDirectory()

isHasTests

public boolean isHasTests()

getTestResultsFilePattern

public java.lang.String getTestResultsFilePattern()


Copyright © 2012 Atlassian. All Rights Reserved.