org.apache.tools.ant.taskdefs

Class PreSetDef

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}"/>
 </presetdef>
 <my.javac srcdir="src" destdir="classes"/>
 

Since: Ant 1.6

Nested Class Summary
static classPreSetDef.PreSetDefinition
This class contains the unknown element and the object that is predefined.
Method Summary
voidaddTask(Task nestedTask)
Add a nested task to predefine attributes and elements on.
voidexecute()
Make a new definition.
voidsetName(String name)
Set the name of this definition.

Method Detail

addTask

public void addTask(Task nestedTask)
Add a nested task to predefine attributes and elements on.

Parameters: nestedTask Nested task/type to extend.

execute

public void execute()
Make a new definition.

setName

public void setName(String name)
Set the name of this definition.

Parameters: name the name of the definition.