Class AntTask
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.task.Task<AntTask,AntTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.AntTask
-
public class AntTask extends Task<AntTask,AntTaskProperties>
Ant build task builder.
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description AntTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull AntTaskPropertiesbuild()AntTaskbuildFile(java.lang.String buildFile)Specifies Ant's build file.AntTaskenvironmentVariables(java.lang.String environmentVariables)Sets environment variables to be set when Ant is executed.booleanequals(java.lang.Object o)AntTaskexecutableLabel(@NotNull java.lang.String label)Sets label of Ant executable.inthashCode()AntTaskhasTests(boolean hasTests)Specifies if given task produces tests.AntTaskjdk(java.lang.String jdk)Specifies which JDK to use.AntTasktarget(@NotNull java.lang.String target)Specifies Ant target(s).AntTasktestResultsPath(java.lang.String testResultsDirectory)Sets location where Bamboo will look for test results.AntTaskworkingSubdirectory(java.lang.String workingSubdirectory)Sets a directory the script should be executed in.-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
-
-
-
Method Detail
-
target
public AntTask target(@NotNull @NotNull java.lang.String target)
Specifies Ant target(s).
-
buildFile
public AntTask buildFile(java.lang.String buildFile)
Specifies Ant's build file.
-
environmentVariables
public AntTask environmentVariables(java.lang.String environmentVariables)
Sets environment variables to be set when Ant is executed.
-
jdk
public AntTask jdk(java.lang.String jdk)
Specifies which JDK to use. If not set default Bamboo JDK will be used.
-
executableLabel
public AntTask executableLabel(@NotNull @NotNull java.lang.String label)
Sets label of Ant executable.
-
hasTests
public AntTask hasTests(boolean hasTests)
Specifies if given task produces tests. If set to true the task will fail if no tests are found. If task is used for Deployment project validation will fail if it has value true. Test output must be in JUnit XML format. Defaults to false.
-
testResultsPath
public AntTask testResultsPath(java.lang.String testResultsDirectory)
Sets location where Bamboo will look for test results. This is a coma separated list of directories. You can also use Ant style patterns such astest-reports/*.xml. Defaults to **\/test-reports/*.xml
-
workingSubdirectory
public AntTask workingSubdirectory(java.lang.String workingSubdirectory)
Sets a directory the script should be executed in.
-
build
@NotNull protected @NotNull AntTaskProperties build()
- Specified by:
buildin classTask<AntTask,AntTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<AntTask,AntTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<AntTask,AntTaskProperties>
-
-