Class AntTask


  • public class AntTask
    extends com.atlassian.bamboo.specs.api.builders.task.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 AntTaskProperties build()  
      AntTask buildFile​(java.lang.String buildFile)
      Specifies Ant's build file.
      AntTask environmentVariables​(java.lang.String environmentVariables)
      Sets environment variables to be set when Ant is executed.
      boolean equals​(java.lang.Object o)  
      AntTask executableLabel​(@NotNull java.lang.String label)
      Sets label of Ant executable.
      int hashCode()  
      AntTask hasTests​(boolean hasTests)
      Specifies if given task produces tests.
      AntTask jdk​(java.lang.String jdk)
      Specifies which JDK to use.
      AntTask target​(@NotNull java.lang.String target)
      Specifies Ant target(s).
      AntTask testResultsPath​(java.lang.String testResultsDirectory)
      Sets location where Bamboo will look for test results.
      AntTask workingSubdirectory​(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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AntTask

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

        public AntTask workingSubdirectory​(java.lang.String workingSubdirectory)
        Sets a directory the script should be executed in.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.atlassian.bamboo.specs.api.builders.task.Task<AntTask,​AntTaskProperties>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.atlassian.bamboo.specs.api.builders.task.Task<AntTask,​AntTaskProperties>