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)
Name of the 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)
Name of the definition

Parameters: name the name of the definition

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.