diff --git a/src/main/org/apache/tools/ant/PropertyHelper.java b/src/main/org/apache/tools/ant/PropertyHelper.java index 2bf81d732..9c1d04181 100644 --- a/src/main/org/apache/tools/ant/PropertyHelper.java +++ b/src/main/org/apache/tools/ant/PropertyHelper.java @@ -249,8 +249,8 @@ public class PropertyHelper { */ public String replaceProperties(String ns, String value, Hashtable keys) throws BuildException { - if (value == null) { - return null; + if (value == null || value.indexOf('$') == -1) { + return value; } Vector fragments = new Vector(); Vector propertyRefs = new Vector();