Class AntTarget

  • All Implemented Interfaces:
    java.lang.Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>

    @DisableCachingByDefault(because="Gradle would require more information to cache this task")
    public abstract class AntTarget
    extends org.gradle.api.internal.ConventionTask
    A task which executes an Ant target.
    • Constructor Detail

      • AntTarget

        public AntTarget()
    • Method Detail

      • executeAntTarget

        protected void executeAntTarget()
      • getTarget

        @Internal
        public org.apache.tools.ant.Target getTarget()
        Returns the Ant target to execute.
      • setTarget

        public void setTarget​(org.apache.tools.ant.Target target)
        Sets the Ant target to execute.
      • getBaseDir

        @Internal
        public java.io.File getBaseDir()
        Returns the Ant project base directory to use when executing the target.
      • setBaseDir

        public void setBaseDir​(java.io.File baseDir)
        Sets the Ant project base directory to use when executing the target.
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets a description for this task. This should describe what the task does to the user of the build. The description will be displayed when gradle tasks is called.
        Specified by:
        setDescription in interface Task
        Overrides:
        setDescription in class DefaultTask
        Parameters:
        description - The description of the task. Might be null.