Top Description Inners Fields Constructors Methods
org.apache.tools.ant.helper

public Class ProjectHelperImpl

extends ProjectHelper
Class Inheritance
Imports
java.io.File, .FileNotFoundException, .IOException, .InputStream, .UnsupportedEncodingException, java.nio.file.Files, java.util.Locale, org.apache.tools.ant.BuildException, .IntrospectionHelper, .Location, .MagicNames, .Project, .ProjectHelper, .RuntimeConfigurable, .Target, .Task, .TaskContainer, .TypeAdapter, .UnknownElement, org.apache.tools.ant.util.FileUtils, .JAXPUtils, org.xml.sax.AttributeList, .DocumentHandler, .HandlerBase, .InputSource, .Locator, .Parser, .SAXException, .SAXParseException, org.xml.sax.helpers.XMLReaderAdapter

Original helper.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
ProjectHelperImpl.AbstractHandler

Deprecated as a consequence of HandlerBase being deprecated.
The common superclass for all SAX event handlers used to parse the configuration file.
pack-priv static class
ProjectHelperImpl.DataTypeHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated.
Handler for all data types directly subordinate to project or target.
pack-priv static class
ProjectHelperImpl.DescriptionHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated.
Handler for "description" elements.
pack-priv static class
ProjectHelperImpl.NestedElementHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated.
Handler for all nested properties.
pack-priv static class
ProjectHelperImpl.ProjectHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated.
Handler for the top level "project" element.
pack-priv static class
ProjectHelperImpl.RootHandler

Deprecated as a consequence of HandlerBase being deprecated.
Handler for the root element.
pack-priv static class
ProjectHelperImpl.TargetHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated.
Handler for "target" elements.
pack-priv static class
ProjectHelperImpl.TaskHandler

Deprecated as a consequence of ProjectHelperImpl.AbstractHandler being deprecated.
Handler for all task elements.

Field Summary

Modifier and TypeField and Description
private File
buildFile

The configuration file to parse.

private File
buildFileParent

Parent directory of the build file.

private static final FileUtils
FILE_UTILS

helper for path -> URI and URI -> path conversions.

private Target
implicitTarget

Target that all other targets will depend upon implicitly.

private Locator
locator

Locator for the configuration file parser.

private Parser
parser

SAX 1 style parser used to parse the given file.

private Project
project

The project to configure.

Inherited from org.apache.tools.ant.ProjectHelper:
ANT_ATTRIBUTE_URIANT_CORE_URIANT_CURRENT_URIANT_TYPEANTLIB_URIHELPER_PROPERTYPROJECTHELPER_REFERENCESERVICE_IDUSE_PROJECT_NAME_AS_TARGET_PREFIX

Constructor Summary

AccessConstructor and Description
public
ProjectHelperImpl()

default constructor

Method Summary

Modifier and TypeMethod and Description
private void
configureId(Object target, AttributeList attr)

Deprecated as a consequence of AttributeList being deprecated.
Scans an attribute list for the id attribute and stores a reference to the target object in the project if an id is found.
private static void
handleElement(ProjectHelperImpl helperImpl, DocumentHandler parent, Target target, String elementName, AttributeList attrs)

Deprecated as a consequence of DocumentHandler and AttributeList being deprecated.
Start a new DataTypeHandler if element is known to be a data-type and a TaskHandler otherwise.
public void
parse(Project
project instance to be configured.
project
,
Object
the source from which the project is read.
source
)

Overrides org.apache.tools.ant.ProjectHelper.parse.

Parses the project file, configuring the project as it goes.
Inherited from org.apache.tools.ant.ProjectHelper:
addLocationToBuildExceptionaddTextaddTextcanParseAntlibDescriptorcanParseBuildFileconfigureconfigureProjectextractNameFromComponentNameextractUriFromComponentNamegenComponentNamegetContextClassLoadergetCurrentPrefixSeparatorgetCurrentTargetPrefixgetDefaultBuildFilegetExtensionStackgetImportStackgetProjectHelperisInIncludeModensToComponentNameparseAntlibDescriptorparsePropertyStringreplacePropertiesreplacePropertiesresolveExtensionOfAttributessetCurrentPrefixSeparatorsetCurrentTargetPrefixsetInIncludeModestoreChild