Browse Source

fix error in circular property detection

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@559237 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 18 years ago
parent
commit
f768fe10ac
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/Property.java

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

@@ -71,7 +71,7 @@ import org.apache.tools.ant.types.Reference;
* @ant.task category="property"
*/
public class Property extends Task {
private class PropertyResolver implements PropertyHelper.PropertyEvaluator {
private static class PropertyResolver implements PropertyHelper.PropertyEvaluator {
private ThreadLocal getStack = new ThreadLocal() {
protected Object initialValue() {
return new Stack();
@@ -114,7 +114,7 @@ public class Property extends Task {
}
stk = (Stack) replaceStack.get();
if (stk.contains(property)) {
throw new BuildException("Property " + name + " was circularly defined.");
throw new BuildException("Property " + property + " was circularly defined.");
}
stk.push(property);
try {


Loading…
Cancel
Save