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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]