public class AntTask extends Task<AntTask,AntTaskProperties>
Ant build task builder.
  • Constructor Details

    • AntTask

      public AntTask()
  • Method Details

    • target

      public AntTask target(@NotNull @NotNull String target)
      Specifies Ant target(s).
    • buildFile

      public AntTask buildFile(String buildFile)
      Specifies Ant's build file.
    • environmentVariables

      public AntTask environmentVariables(String environmentVariables)
      Sets environment variables to be set when Ant is executed.
    • jdk

      public AntTask jdk(String jdk)
      Specifies which JDK to use. If not set default Bamboo JDK will be used.
    • executableLabel

      public AntTask executableLabel(@NotNull @NotNull 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(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 as test-reports/*.xml. Defaults to **\/test-reports/*.xml
    • workingSubdirectory

      public AntTask workingSubdirectory(String workingSubdirectory)
      Sets a directory the script should be executed in.
    • build

      @NotNull protected @NotNull AntTaskProperties build()
      Specified by:
      build in class Task<AntTask,AntTaskProperties>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Task<AntTask,AntTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Task<AntTask,AntTaskProperties>