Browse Source

allow a propertyevalulator to signal that it 'owns' the property, but the property is not set

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@568511 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
735315c1ea
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/main/org/apache/tools/ant/PropertyHelper.java

+ 5
- 0
src/main/org/apache/tools/ant/PropertyHelper.java View File

@@ -28,6 +28,8 @@ import java.util.Set;
import java.util.Vector;
import java.util.Enumeration;

import org.apache.tools.ant.property.NullReturn;

/* ISSUES:
- ns param. It could be used to provide "namespaces" for properties, which
may be more flexible.
@@ -784,6 +786,9 @@ public class PropertyHelper implements Cloneable {
for (Iterator iter = getDelegates(PropertyEvaluator.class).iterator(); iter.hasNext();) {
Object o = ((PropertyEvaluator) iter.next()).evaluate(name, this);
if (o != null) {
if (o instanceof NullReturn) {
return null;
}
return o;
}
}


Loading…
Cancel
Save