org.xfp.filters
Class AntTask
java.lang.Object
org.xfp.AttributeContainer
org.xfp.Filter
org.xfp.filters.AntTask
- public class AntTask
- extends Filter
Executes an Ant task.
Lacks support for nested elements.
- Version:
- $Id: AntTask.java,v 1.1 2004/03/19 15:56:47 flaviotordini Exp $
- Author:
- Flavio Tordini
- JAR Dependency:
- Apache Ant
Method Summary |
void |
execute()
|
void |
reset()
Resets filter status after execution. |
void |
setAttribute(java.lang.String attributename,
java.lang.String attributevalue)
Sets attribute of the ant task. |
void |
setTask(java.lang.String task)
Sets the task type. |
void |
setText(java.lang.String text)
Sets the text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AntTask
public AntTask()
setAttribute
public void setAttribute(java.lang.String attributename,
java.lang.String attributevalue)
- Sets attribute of the ant task.
- Parameters:
attributename
- Name of the attributeattributevalue
- Value of the attribute
execute
public void execute()
throws java.lang.Exception
- Throws:
java.lang.Exception
reset
public void reset()
- Description copied from class:
Filter
- Resets filter status after execution. This method is called after
execute(), even in case of exceptions. Since a Filter instance may be
reused (and actually is), you must use this method to reset all your
class members to their default value.
- Specified by:
reset
in class Filter
- See Also:
Filter.reset()
setTask
public void setTask(java.lang.String task)
- Sets the task type.
- Parameters:
task
- The name of the Ant task to execute.
setText
public void setText(java.lang.String text)
- Sets the text.
- Parameters:
text
- This is the text enclosed in the task tag.
Copyright © 2003-2004 XFP Team. All Rights Reserved.