Package org.apache.tools.ant.taskdefs
Class PreSetDef
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.AntlibDefinition
org.apache.tools.ant.taskdefs.PreSetDef
- All Implemented Interfaces:
- Cloneable,- 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}"/>
 </presetdef>
 <my.javac srcdir="src" destdir="classes"/>
 - Since:
- Ant 1.6
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis class contains the unknown element and the object that is predefined.
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.taskdefs.AntlibDefinitiongetAntlibClassLoader, getURI, setAntlibClassLoader, setURIMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
PreSetDefpublic PreSetDef()
 
- 
- 
Method Details- 
setNameSet the name of this definition.- Parameters:
- name- the name of the definition.
 
- 
addTaskAdd a nested task to predefine attributes and elements on.- Specified by:
- addTaskin interface- TaskContainer
- Parameters:
- nestedTask- Nested task/type to extend.
 
- 
executepublic void execute()Make a new definition.
 
-