Class DefaultAntTaskFactory

    • Constructor Detail

      • DefaultAntTaskFactory

        public DefaultAntTaskFactory​(org.apache.tools.ant.Project project)
        Constructor using default values for the current task name, current location and current target.
        Parameters:
        project - the Ant project used when creating Ant tasks
      • DefaultAntTaskFactory

        public DefaultAntTaskFactory​(org.apache.tools.ant.Project project,
                                     String currentTaskName,
                                     org.apache.tools.ant.Location currentLocation,
                                     org.apache.tools.ant.Target currentTarget)
        Parameters:
        project - the Ant project used when creating Ant tasks
        currentTaskName - the current Ant task being executed
        currentLocation - the current Location of the Task being executed.
        currentTarget - the current Target being executed
    • Method Detail

      • createTask

        public org.apache.tools.ant.Task createTask​(String theName)
        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.
        Specified by:
        createTask in interface AntTaskFactory
        Parameters:
        theName - 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