org.apache.tools.ant.taskdefs
Class Ant
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.Ant
- public class Ant
- extends Task
Call Ant in a sub-project
- Author:
- costin@dnt.ro
Constructor Summary |
Ant()
|
Method Summary |
Property |
createProperty()
|
void |
execute()
Do the execution. |
protected void |
handleErrorOutput(java.lang.String line)
|
protected void |
handleOutput(java.lang.String line)
|
void |
init()
Called by the project to let the task initialize properly. |
void |
setAntfile(java.lang.String s)
|
void |
setDir(java.io.File d)
|
void |
setInheritAll(boolean inherit)
If true, inherit all properties from parent Project
If false, inherit only userProperties and those defined
inside the ant call itself |
void |
setOutput(java.lang.String s)
|
void |
setTarget(java.lang.String s)
|
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ant
public Ant()
setInheritAll
public void setInheritAll(boolean inherit)
- If true, inherit all properties from parent Project
If false, inherit only userProperties and those defined
inside the ant call itself
init
public void init()
- Description copied from class:
Task
- Called by the project to let the task initialize properly.
- Overrides:
init
in class Task
- Following copied from class:
org.apache.tools.ant.Task
- Throws:
BuildException
- if someting goes wrong with the build
handleOutput
protected void handleOutput(java.lang.String line)
- Overrides:
handleOutput
in class Task
handleErrorOutput
protected void handleErrorOutput(java.lang.String line)
- Overrides:
handleErrorOutput
in class Task
execute
public void execute()
throws BuildException
- Do the execution.
- Overrides:
execute
in class Task
- Following copied from class:
org.apache.tools.ant.Task
- Throws:
BuildException
- if someting goes wrong with the build
setDir
public void setDir(java.io.File d)
setAntfile
public void setAntfile(java.lang.String s)
setTarget
public void setTarget(java.lang.String s)
setOutput
public void setOutput(java.lang.String s)
createProperty
public Property createProperty()
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.