org.apache.tools.ant
public class ProjectHelperRepository extends Object
See the ProjectHelper documentation in the manual.
Since: Ant 1.8.0
Method Summary | |
---|---|
Iterator | getHelpers()
Get an iterator on the list of project helpers configured. |
static ProjectHelperRepository | getInstance() |
ProjectHelper | getProjectHelperForAntlib(Resource antlib)
Get the helper that will be able to parse the specified antlib. |
ProjectHelper | getProjectHelperForBuildFile(Resource buildFile)
Get the helper that will be able to parse the specified build file. |
void | registerProjectHelper(String helperClassName)
Register the specified project helper into the repository.
|
void | registerProjectHelper(Class helperClass)
Register the specified project helper into the repository.
|
Returns: an iterator of ProjectHelper
Returns: the first ProjectHelper that fit the requirement (never null
).
Returns: the first ProjectHelper that fit the requirement (never null
).
The helper will be added after all the already registered helpers, but before the default one (ProjectHelper2)
Parameters: helperClassName the fully qualified name of the helper
Throws: BuildException if the class cannot be loaded or if there is no constructor with no argument
Since: Ant 1.8.2
The helper will be added after all the already registered helpers, but before the default one (ProjectHelper2)
Parameters: helperClass the class of the helper
Throws: BuildException if there is no constructor with no argument
Since: Ant 1.8.2