org.apache.tools.ant.helper
public class ProjectHelper2 extends ProjectHelper
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 | |
---|---|
static String | REFID_TARGETS Reference holding the (ordered) target Vector |
Method Summary | |
---|---|
protected static ProjectHelper2.AntHandler | getElementHandler()
Returns element handler |
protected static ProjectHelper2.AntHandler | getMainHandler()
Returns main handler |
protected static ProjectHelper2.AntHandler | getProjectHandler()
Returns project handler |
protected static ProjectHelper2.AntHandler | getTargetHandler()
Returns target handler |
void | parse(Project project, Object source)
Parse a source xml input.
|
void | parse(Project project, Object source, ProjectHelper2.RootHandler handler)
Parses the project file, configuring the project as it goes.
|
UnknownElement | parseUnknownElement(Project project, URL source)
Parse an unknown element from a url
|
protected static void | setElementHandler(ProjectHelper2.AntHandler handler)
Sets element handler |
protected static void | setMainHandler(ProjectHelper2.AntHandler handler)
Sets main handler |
protected static void | setProjectHandler(ProjectHelper2.AntHandler handler)
Sets project handler |
protected static void | setTargetHandler(ProjectHelper2.AntHandler handler)
Sets target handler |
Returns: element handler
Returns: main handler
Returns: project handler
Returns: target handler
Parameters: project the current project source the xml source
Throws: BuildException if an error occurs
Parameters: project the current project source the xml source handler the root handler to use (contains the current context)
Throws: BuildException if the configuration is invalid or cannot be read
Parameters: project the current project source the url containing the task
Returns: a configured task
Throws: BuildException if an error occurs
Parameters: handler new element handler
Parameters: handler new main handler
Parameters: handler new project handler
Parameters: handler new target handler