diff --git a/manual/projecthelper.html b/manual/projecthelper.html index fa07aea44..2e43f7933 100644 --- a/manual/projecthelper.html +++ b/manual/projecthelper.html @@ -70,13 +70,13 @@ in the same order they've been found in an internal 'repository': service declarations in the META-INF: it searches in the classpath for a file META-INF/services/org.apache.tools.ant.ProjectHelper. This file will just contain the fully qualified name of the - implementation of ProjectHelper to instanciate; + implementation of ProjectHelper to instantiate;
  • it will also search with the system class loader for ProjectHelper service declarations in the META-INF;
  • last but not least it will add its default ProjectHelper that can parse classical build.xml files.
  • -In case of an error while trying to instanciate a ProjectHelper, Ant +In case of an error while trying to instantiate a ProjectHelper, Ant will log an error but won't stop. If you want further debugging info about the ProjectHelper internal 'repository', use the system property ant.project-helper-repo.debug and set it to @@ -104,7 +104,7 @@ The class org.apache.tools.ant.ProjectHelper is the API expected to be implemented. So write your own ProjectHelper by extending that abstract class. You are then expected to implement at least the function parse(Project project, Object source). Note also that your -implementation will be instanciated by Ant, and it is expecting a default +implementation will be instantiated by Ant, and it is expecting a default constructor with no arguments.

    diff --git a/src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java b/src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java index 1ede565a8..ed3331fbd 100644 --- a/src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java +++ b/src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java @@ -48,7 +48,7 @@ public class ArgumentProcessorRegistry { private static final String DEBUG_ARGUMENT_PROCESSOR_REPOSITORY = "ant.argument-processor-repo.debug"; // The message log level is not accessible here because everything - // is instanciated statically + // is instantiated statically private static final boolean DEBUG = "true".equals(System.getProperty(DEBUG_ARGUMENT_PROCESSOR_REPOSITORY)); private static final String SERVICE_ID = "META-INF/services/org.apache.tools.ant.ArgumentProcessor"; @@ -128,7 +128,7 @@ public class ArgumentProcessorRegistry { } catch (Exception e) { throw new BuildException("The argument processor class" + processorClass.getClass().getName() - + " could not be instanciated with a default constructor", + + " could not be instantiated with a default constructor", e); } return processor; diff --git a/src/main/org/apache/tools/ant/ProjectHelperRepository.java b/src/main/org/apache/tools/ant/ProjectHelperRepository.java index 7fe92c491..e370a54c7 100644 --- a/src/main/org/apache/tools/ant/ProjectHelperRepository.java +++ b/src/main/org/apache/tools/ant/ProjectHelperRepository.java @@ -46,7 +46,7 @@ public class ProjectHelperRepository { "ant.project-helper-repo.debug"; // The message log level is not accessible here because everything - // is instanciated statically + // is instantiated statically private static final boolean DEBUG = "true".equals(System.getProperty(DEBUG_PROJECT_HELPER_REPOSITORY));