|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task net.dpml.transit.tools.TransitTask net.dpml.transit.tools.MainTask
Task that initializes the Transit sub-system during which a transit is assigned to the current project. In addition the initization procedures establishes a set of ant properties enabling convenient script based access to DPML dirctories.
<project name="example" xmlns:transit="antlib:net.dpml.transit"> <transit:init/> <echo message="Home: ${dpml.home}"/> <echo message="Cache: ${dpml.cache}"/> <echo message="Templates: ${dpml.templates}"/> <echo message="Docs: ${dpml.docs}"/> <echo message="Docs: ${dpml.dist}"/> </project>
Output from the above example is shown below:
[echo] Home: C:\system\dpml [echo] Cache: C:\system\dpml\main [echo] Templates: C:\system\dpml\templates [echo] Docs: C:\system\dpml\docs [echo] Docs: C:\system\dpml\dist
Field Summary |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
MainTask()
Creation of a new Main task. |
Method Summary | |
MapDataType |
createMap()
Create and return a new plugin definition. |
void |
execute()
Updates properties on the current project and install any plugins declared as children of the transit init tag. |
static void |
initialize(Task task)
Initialize the supplied task. |
void |
setProject(Project project)
Set the project. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MainTask()
Method Detail |
public MapDataType createMap()
public void setProject(Project project)
project
- the current projectpublic void execute() throws BuildException
BuildException
- if an execution error occurspublic static void initialize(Task task) throws BuildException
task
- the task to initialize
BuildException
- if an initialization error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |