|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.tools.ant.ProjectHelper
|
+--org.apache.tools.ant.helper.ProjectHelper2
Sax2 based project reader
| Nested Class Summary | |
static class |
ProjectHelper2.AntHandler
The common superclass for all SAX event handlers used to parse the configuration file. |
static class |
ProjectHelper2.ElementHandler
Handler for all project elements ( tasks, data types ) |
static class |
ProjectHelper2.MainHandler
The main handler - it handles the <project> tag. |
static class |
ProjectHelper2.ProjectHandler
Handler for the top level "project" element. |
static class |
ProjectHelper2.RootHandler
Handler for ant processing. |
static class |
ProjectHelper2.TargetHandler
Handler for "target" elements. |
| Field Summary |
| Fields inherited from class org.apache.tools.ant.ProjectHelper |
ANT_CORE_URI, ANT_CURRENT_URI, ANT_TYPE, ANTLIB_URI, HELPER_PROPERTY, SERVICE_ID |
| Constructor Summary | |
ProjectHelper2()
|
|
| Method Summary | |
void |
parse(Project project,
java.lang.Object source)
Parse a source xml input. |
void |
parse(Project project,
java.lang.Object source,
ProjectHelper2.RootHandler handler)
Parses the project file, configuring the project as it goes. |
UnknownElement |
parseUnknownElement(Project project,
java.net.URL source)
Parse an unknown element from a url |
| Methods inherited from class org.apache.tools.ant.ProjectHelper |
addLocationToBuildException, addText, addText, configure, configureProject, extractNameFromComponentName, extractUriFromComponentName, genComponentName, getContextClassLoader, getImportStack, getProjectHelper, parsePropertyString, replaceProperties, replaceProperties, storeChild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProjectHelper2()
| Method Detail |
public UnknownElement parseUnknownElement(Project project,
java.net.URL source)
throws BuildException
project - the current projectsource - the url containing the task
BuildException - if an error occurs
public void parse(Project project,
java.lang.Object source)
throws BuildException
parse in class ProjectHelperproject - the current projectsource - the xml source
BuildException - if an error occurs
public void parse(Project project,
java.lang.Object source,
ProjectHelper2.RootHandler handler)
throws BuildException
project - the current projectsource - the xml sourcehandler - the root handler to use (contains the current context)
BuildException - if the configuration is invalid or cannot
be read
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||