Browse Source

Fixed a typo (instanciated -> instantiated)

master
Emmanuel Bourg Stefan Bodewig 8 years ago
parent
commit
0c38fb606f
3 changed files with 6 additions and 6 deletions
  1. +3
    -3
      manual/projecthelper.html
  2. +2
    -2
      src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java
  3. +1
    -1
      src/main/org/apache/tools/ant/ProjectHelperRepository.java

+ 3
- 3
manual/projecthelper.html View File

@@ -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 <code>META-INF/services/org.apache.tools.ant.ProjectHelper</code>.
This file will just contain the fully qualified name of the
implementation of <code>ProjectHelper</code> to instanciate;</li>
implementation of <code>ProjectHelper</code> to instantiate;</li>
<li>it will also search with the system class loader for
<code>ProjectHelper</code> service declarations in the META-INF;</li>
<li>last but not least it will add its default <code>ProjectHelper</code>
that can parse classical build.xml files.</li>
</ul>
In case of an error while trying to instanciate a <code>ProjectHelper</code>, Ant
In case of an error while trying to instantiate a <code>ProjectHelper</code>, Ant
will log an error but won't stop. If you want further debugging
info about the <code>ProjectHelper</code> internal 'repository', use the <b>system</b>
property <code>ant.project-helper-repo.debug</code> and set it to
@@ -104,7 +104,7 @@ The class <code>org.apache.tools.ant.ProjectHelper</code> is the API expected to
be implemented. So write your own <code>ProjectHelper</code> by extending that
abstract class. You are then expected to implement at least the function
<code>parse(Project project, Object source)</code>. 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.
</p>



+ 2
- 2
src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java View File

@@ -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;


+ 1
- 1
src/main/org/apache/tools/ant/ProjectHelperRepository.java View File

@@ -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));



Loading…
Cancel
Save