org.apache.tools.ant

Class ProjectHelperRepository

public class ProjectHelperRepository extends Object

Repository of ProjectHelper found in the classpath or via some System properties.

See the ProjectHelper documentation in the manual.

Since: Ant 1.8.0

Method Summary
IteratorgetHelpers()
Get an iterator on the list of project helpers configured.
static ProjectHelperRepositorygetInstance()
ProjectHelpergetProjectHelperForAntlib(Resource antlib)
Get the helper that will be able to parse the specified antlib.
ProjectHelpergetProjectHelperForBuildFile(Resource buildFile)
Get the helper that will be able to parse the specified build file.

Method Detail

getHelpers

public Iterator getHelpers()
Get an iterator on the list of project helpers configured. The iterator will always return at least one element as there will always be the default project helper configured.

Returns: an iterator of ProjectHelper

getInstance

public static ProjectHelperRepository getInstance()

getProjectHelperForAntlib

public ProjectHelper getProjectHelperForAntlib(Resource antlib)
Get the helper that will be able to parse the specified antlib. The helper will be chosen among the ones found in the classpath

Returns: the first ProjectHelper that fit the requirement (never null).

getProjectHelperForBuildFile

public ProjectHelper getProjectHelperForBuildFile(Resource buildFile)
Get the helper that will be able to parse the specified build file. The helper will be chosen among the ones found in the classpath

Returns: the first ProjectHelper that fit the requirement (never null).