Browse Source

Correcting typo.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@483668 13f79535-47bb-0310-9956-ffa450edef68
master
Jesse N. Glick 18 years ago
parent
commit
cfe5fa582b
3 changed files with 9 additions and 8 deletions
  1. +3
    -2
      src/main/org/apache/tools/ant/util/ScriptRunnerBase.java
  2. +5
    -5
      src/main/org/apache/tools/ant/util/optional/JavaxScriptRunner.java
  3. +1
    -1
      src/main/org/apache/tools/ant/util/optional/ScriptRunner.java

+ 3
- 2
src/main/org/apache/tools/ant/util/ScriptRunnerBase.java View File

@@ -32,8 +32,9 @@ import java.util.Iterator;

/**
* This is a common abstract base case for script runners.
* These classes need to implement executeScript, evalulateScript
* These classes need to implement executeScript, evaluateScript
* and supportsLanguage.
* @since Ant 1.7.0
*/
public abstract class ScriptRunnerBase {
/** Whether to keep the engine between calls to execute/eval */
@@ -115,7 +116,7 @@ public abstract class ScriptRunnerBase {
* execution.
* @return the result of evalulating the script.
*/
public abstract Object evalulateScript(String execName);
public abstract Object evaluateScript(String execName);

/**
* Check if a script engine can be created for


+ 5
- 5
src/main/org/apache/tools/ant/util/optional/JavaxScriptRunner.java View File

@@ -15,6 +15,7 @@
* limitations under the License.
*
*/

package org.apache.tools.ant.util.optional;

import org.apache.tools.ant.BuildException;
@@ -25,10 +26,9 @@ import org.apache.tools.ant.util.ScriptRunnerBase;
import org.apache.tools.ant.util.ReflectUtil;
import org.apache.tools.ant.util.ReflectWrapper;


/**
* This class is used to run javax.script scripts
*
* This class is used to run scripts using JSR 223.
* @since Ant 1.7.0
*/
public class JavaxScriptRunner extends ScriptRunnerBase {
private ReflectWrapper engine;
@@ -66,7 +66,7 @@ public class JavaxScriptRunner extends ScriptRunnerBase {
* @exception BuildException if someting goes wrong exectuing the script.
*/
public void executeScript(String execName) throws BuildException {
evalulateScript(execName);
evaluateScript(execName);
}

/**
@@ -77,7 +77,7 @@ public class JavaxScriptRunner extends ScriptRunnerBase {
* @return the result of the evalulation
* @exception BuildException if someting goes wrong exectuing the script.
*/
public Object evalulateScript(String execName) throws BuildException {
public Object evaluateScript(String execName) throws BuildException {
checkLanguage();
ClassLoader origLoader = replaceContextLoader();
try {


+ 1
- 1
src/main/org/apache/tools/ant/util/optional/ScriptRunner.java View File

@@ -119,7 +119,7 @@ public class ScriptRunner extends ScriptRunnerBase {
* @return the result of the evalulation
* @exception BuildException if someting goes wrong exectuing the script.
*/
public Object evalulateScript(String execName)
public Object evaluateScript(String execName)
throws BuildException {
checkLanguage();
ClassLoader origLoader = replaceContextLoader();


Loading…
Cancel
Save