ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r559237 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java
Date Tue, 24 Jul 2007 22:07:24 GMT
Author: mbenson
Date: Tue Jul 24 15:07:23 2007
New Revision: 559237

URL: http://svn.apache.org/viewvc?view=rev&rev=559237
Log:
fix error in circular property detection

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java?view=diff&rev=559237&r1=559236&r2=559237
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Property.java Tue Jul 24 15:07:23
2007
@@ -71,7 +71,7 @@
  * @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 @@
             }
             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 {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message