org.apache.tools.ant.taskdefs
Class PreSetDef
- 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"/>
void | addTask(Task nestedTask)- Add a nested task to predefine attributes and elements on.
|
void | execute()- Make a new definition.
|
void | setName(String name)- Set the name of this definition.
|
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
addTask
public void addTask(Task nestedTask)
Add a nested task to predefine attributes and elements on.
- addTask in interface TaskContainer
nestedTask - Nested task/type to extend.
execute
public void execute()
Make a new definition.
- execute in interface Task
setName
public void setName(String name)
Set the name of this definition.
name - the name of the definition.