Interface AntTaskFactory

  • All Known Implementing Classes:
    DefaultAntTaskFactory

    public interface AntTaskFactory
    Interface that allows random classes to use Ant tasks without needing an explicit reference to a project, target or task.
    • Method Detail

      • createTask

        org.apache.tools.ant.Task createTask​(String taskName)
        Returns the task that is mapped to the specified name. Implementations of this interface should correctly initialize the task by setting the name, the project and optionally the owning target.
        Parameters:
        taskName - The logical name of the task
        Returns:
        A new instance of the task mapped to the name, or null if a corresponding task could not be created