Class PreSetDef

  • All Implemented Interfaces:
    java.lang.Cloneable, TaskContainer

    public class PreSetDef
    extends AntlibDefinition
    implements TaskContainer
    The preset definition task generates a new definition based on a current definition with some attributes or elements preset.
     <presetdef name="my.javac">
       <javac deprecation="${deprecation}" debug="${debug}"/>
     <my.javac srcdir="src" destdir="classes"/>
    Ant 1.6
    • Constructor Detail

      • PreSetDef

        public PreSetDef()
    • Method Detail

      • setName

        public void setName​(java.lang.String name)
        Set the name of this definition.
        name - the name of the definition.
      • addTask

        public void addTask​(Task nestedTask)
        Add a nested task to predefine attributes and elements on.
        Specified by:
        addTask in interface TaskContainer
        nestedTask - Nested task/type to extend.
      • execute

        public void execute()
        Make a new definition.
        execute in class Task