org.apache.tools.ant
Class Task
java.lang.Object
|
+--org.apache.tools.ant.Task
- Direct Known Subclasses:
- Ant, Available, Chmod, Copyfile, Deltree, Echo, Exec, Expand, Filter, Get, GUnzip, GZip, KeySubst, MatchingTask, Mkdir, Property, Rename, Rmic, Script, TaskAdapter, Taskdef, Tstamp, Untar
- public abstract class Task
- extends java.lang.Object
Base class for all tasks.
Constructor Summary |
Task()
|
Method Summary |
void |
execute()
Called by the project to let the task do it's work. |
java.lang.String |
getDescription()
|
Location |
getLocation()
Returns the file location where this task was defined. |
void |
init()
Called by the project to let the task initialize properly. |
void |
setDescription(java.lang.String desc)
Sets a description of the current action. |
void |
setLocation(Location location)
Sets the file location where this task was defined. |
void |
setTarget(Target target)
Sets the target object of this task. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
project
protected Project project
target
protected Target target
description
protected java.lang.String description
location
protected Location location
Task
public Task()
setTarget
public void setTarget(Target target)
- Sets the target object of this task.
- Parameters:
target
- Target in whose scope this task belongs.
setDescription
public void setDescription(java.lang.String desc)
- Sets a description of the current action. It will be usefull in commenting
what we are doing.
getDescription
public java.lang.String getDescription()
init
public void init()
throws BuildException
- Called by the project to let the task initialize properly. Normally it does nothing.
- Throws:
- BuildException - if someting goes wrong with the build
execute
public void execute()
throws BuildException
- Called by the project to let the task do it's work. Normally it does nothing.
- Throws:
- BuildException - if someting goes wrong with the build
getLocation
public Location getLocation()
- Returns the file location where this task was defined.
setLocation
public void setLocation(Location location)
- Sets the file location where this task was defined.
Copyright © 2000 Apache Software Foundation. All Rights Reserved.