|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ComponentHelper
net.dpml.transit.tools.TransitComponentHelper
A component helper that handles automatic loading of plugins into the ant plugin based on namespace declarations in the project file. This is similar to the 'antlib:' convention except we use the 'plugin:' convention.
Field Summary | |
static String |
PLUGIN_ARTIFACT_HEADER
The constant artifact plugin header. |
static String |
TRANSIT_ANTLIB_URN
The constant Transit ANTLIB namespace. |
static String |
TRANSIT_GET_URN
The constant Transit ANTLIB get task namespace. |
static String |
TRANSIT_IMPORT_URN
The constant Transit ANTLIB import task namespace. |
static String |
TRANSIT_INIT_URN
The constant Transit ANTLIB init task namespace. |
static String |
TRANSIT_PLUGIN_URN
The constant Transit ANTLIB plugin task namespace. |
Constructor Summary | |
TransitComponentHelper(Project project)
Creation of a new transit component helper. |
|
TransitComponentHelper(Project project,
ComponentHelper parent)
Creation of a new transit component helper. |
Method Summary | |
void |
buildFinished(BuildEvent event)
Notification that the build has finished. |
void |
buildStarted(BuildEvent event)
Notification that the build has started. |
Object |
createComponent(String name)
Create an object for a component using a supplied name. |
static void |
initialize(Project project)
Creation of a component helper for the supplied project. |
static void |
initialize(Project project,
boolean flag)
Creation of a component helper for the supplied project. |
void |
messageLogged(BuildEvent event)
Notification of a message logged. |
static void |
register(MapDataType[] maps)
Register the mapping between a urn and a plugin uri. |
void |
setProject(Project project)
Set the current project. |
void |
subBuildFinished(BuildEvent event)
Notification that a sub build has finished. |
void |
subBuildStarted(BuildEvent event)
Notification that a sub build has started. |
void |
targetFinished(BuildEvent event)
Notification that the build target has finished. |
void |
targetStarted(BuildEvent event)
Notification that the build target has started. |
void |
taskFinished(BuildEvent event)
Notification that the build task has finaished. |
void |
taskStarted(BuildEvent event)
Notification that the build task has started. |
Methods inherited from class org.apache.tools.ant.ComponentHelper |
addDataTypeDefinition, addDataTypeDefinition, addTaskDefinition, checkTaskClass, createComponent, createDataType, createTask, enterAntLib, exitAntLib, getAntTypeTable, getComponentClass, getComponentHelper, getCurrentAntlibUri, getDataTypeDefinitions, getDefinition, getElementName, getNext, getTaskDefinitions, initDefaultDefinitions, initSubProject, setNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TRANSIT_ANTLIB_URN
public static final String TRANSIT_INIT_URN
public static final String TRANSIT_PLUGIN_URN
public static final String TRANSIT_IMPORT_URN
public static final String TRANSIT_GET_URN
public static final String PLUGIN_ARTIFACT_HEADER
Constructor Detail |
public TransitComponentHelper(Project project)
project
- the current projectpublic TransitComponentHelper(Project project, ComponentHelper parent)
project
- the current projectparent
- the parent component helperMethod Detail |
public static void initialize(Project project)
project
- the projectpublic static void initialize(Project project, boolean flag)
project
- the projectflag
- subproject flagpublic static void register(MapDataType[] maps)
maps
- a sequence of urn to uri bindingspublic void setProject(Project project)
project
- the current ant projectpublic Object createComponent(String name)
name
- the name of the component, if the component is in a namespace, the
name is prefixed with the namespace uri and ":"
public void buildStarted(BuildEvent event) throws BuildException
buildStarted
in interface BuildListener
event
- the build event
BuildException
- if a build error occurspublic void subBuildStarted(BuildEvent event)
subBuildStarted
in interface SubBuildListener
event
- the build eventpublic void subBuildFinished(BuildEvent event)
subBuildFinished
in interface SubBuildListener
event
- the build eventpublic void buildFinished(BuildEvent event)
buildFinished
in interface BuildListener
event
- the build eventpublic void targetStarted(BuildEvent event)
targetStarted
in interface BuildListener
event
- the build eventpublic void targetFinished(BuildEvent event)
targetFinished
in interface BuildListener
event
- the build eventpublic void taskStarted(BuildEvent event)
taskStarted
in interface BuildListener
event
- the build eventpublic void taskFinished(BuildEvent event)
taskFinished
in interface BuildListener
event
- the build eventpublic void messageLogged(BuildEvent event)
messageLogged
in interface BuildListener
event
- the build event
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |