|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.core.internal.AntTarget
public final class AntTarget
A convenience class that hides some of the details of interacting with ant programmatically. An ant task wrapper will typically hold and instance of this class to ease implementation.
This class effectively mimicks an ant script that contains an outer project
element which in turn contains a single inner target element. The
addTask(Task) method is used to provide the individual ant task
elements that should make up that target element.
| Constructor Summary | |
|---|---|
AntTarget(java.lang.String name)
The name of a target can appear in log4j reports for example so bear this in mind when choosing one. |
|
| Method Summary | |
|---|---|
void |
addTask(org.apache.tools.ant.Task task)
Adds a task sequentially to the underlying ant target. |
void |
execute()
Executes the underlying ant target. |
java.lang.String |
getName()
|
org.apache.tools.ant.Project |
getProject()
|
org.apache.tools.ant.Target |
getTarget()
|
void |
initLogging(java.io.File logFile,
int level)
Enables logging to the specified log file at the specified level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AntTarget(java.lang.String name)
name - | Method Detail |
|---|
public void initLogging(java.io.File logFile,
int level)
logFile - the file to log tolevel - one of the org.apache.tools.ant.Project.MSG_XXX
logging levelspublic void addTask(org.apache.tools.ant.Task task)
task - public void execute()
public org.apache.tools.ant.Target getTarget()
public org.apache.tools.ant.Project getProject()
public java.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||