Class TaskDefHelper

  • All Implemented Interfaces:
    Cloneable

    public class TaskDefHelper
    extends org.apache.tools.ant.taskdefs.Taskdef
    Task helper forcing taskdef task to ignore class path problems. This works by setting error to report and overriding the Definer.setOnError(org.apache.tools.ant.taskdefs.Definer.OnError) not to change anything. This is a crude hack for ticket #79 and there is probably a cleaner way to do it.
    Author:
    Christophe Labouisse
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Definer

        org.apache.tools.ant.taskdefs.Definer.Format, org.apache.tools.ant.taskdefs.Definer.OnError
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      TaskDefHelper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setOnError​(org.apache.tools.ant.taskdefs.Definer.OnError onError)
      Method setOnError.
      • Methods inherited from class org.apache.tools.ant.taskdefs.Definer

        addDefinition, execute, getClassname, getFile, getName, getResource, loadProperties, makeResourceFromURI, setAdapter, setAdapterClass, setAdaptTo, setAdaptToClass, setAntlib, setClassname, setFile, setFormat, setName, setResource, setRestrict
      • Methods inherited from class org.apache.tools.ant.taskdefs.DefBase

        createClasspath, createLoader, getClasspath, getClasspathId, getLoaderId, hasCpDelegate, init, isReverseLoader, setClasspath, setClasspathRef, setLoaderRef, setReverseLoader
      • Methods inherited from class org.apache.tools.ant.taskdefs.AntlibDefinition

        getAntlibClassLoader, getURI, setAntlibClassLoader, setURI
      • Methods inherited from class org.apache.tools.ant.Task

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
    • Constructor Detail

      • TaskDefHelper

        public TaskDefHelper()
    • Method Detail

      • setOnError

        public void setOnError​(org.apache.tools.ant.taskdefs.Definer.OnError onError)
        Method setOnError.
        Overrides:
        setOnError in class org.apache.tools.ant.taskdefs.Definer
        Parameters:
        onError - OnError
        See Also:
        Definer.setOnError(org.apache.tools.ant.taskdefs.Definer.OnError)