| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.ProjectHelperorg.apache.tools.ant.helper.ProjectHelper2public class ProjectHelper2extends ProjectHelperNested Class Summary | |
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
static class |
|
Field Summary |
Fields inherited from class org.apache.tools.ant.ProjectHelper | |
ANTLIB_URI, ANT_CORE_URI, ANT_CURRENT_URI, ANT_TYPE, HELPER_PROPERTY, PROJECTHELPER_REFERENCE, SERVICE_ID | |
Method Summary | |
protected static ProjectHelper2.AntHandler |
|
protected static ProjectHelper2.AntHandler |
|
protected static ProjectHelper2.AntHandler |
|
protected static ProjectHelper2.AntHandler |
|
void | |
void |
|
UnknownElement |
|
protected static void |
|
protected static void |
|
protected static void |
|
protected static void |
|
Methods inherited from class org.apache.tools.ant.ProjectHelper | |
addLocationToBuildException, addText, addText, configure, configureProject, extractNameFromComponentName, extractUriFromComponentName, genComponentName, getContextClassLoader, getImportStack, getProjectHelper, parse, parsePropertyString, replaceProperties, replaceProperties, storeChild | |
protected static ProjectHelper2.AntHandler getElementHandler()
Returns element handler
- Returns:
- element handler
protected static ProjectHelper2.AntHandler getMainHandler()
Returns main handler
- Returns:
- main handler
protected static ProjectHelper2.AntHandler getProjectHandler()
Returns project handler
- Returns:
- project handler
protected static ProjectHelper2.AntHandler getTargetHandler()
Returns target handler
- Returns:
- target handler
public void parse(Project project, Object source) throws BuildException
Parse a source xml input.
- Overrides:
- parse in interface ProjectHelper
- Parameters:
project- the current projectsource- the xml source
- Throws:
BuildException- if an error occurs
public void parse(Project project, Object source, ProjectHelper2.RootHandler handler) throws BuildException
Parses the project file, configuring the project as it goes.
- Parameters:
project- the current projectsource- the xml sourcehandler- the root handler to use (contains the current context)
- Throws:
BuildException- if the configuration is invalid or cannot be read
public UnknownElement parseUnknownElement(Project project, URL source) throws BuildException
Parse an unknown element from a url
- Parameters:
project- the current projectsource- the url containing the task
- Returns:
- a configured task
- Throws:
BuildException- if an error occurs
protected static void setElementHandler(ProjectHelper2.AntHandler handler)
Sets element handler
- Parameters:
handler- new element handler
protected static void setMainHandler(ProjectHelper2.AntHandler handler)
Sets main handler
- Parameters:
handler- new main handler
protected static void setProjectHandler(ProjectHelper2.AntHandler handler)
Sets project handler
- Parameters:
handler- new project handler
protected static void setTargetHandler(ProjectHelper2.AntHandler handler)
Sets target handler
- Parameters:
handler- new target handler