Author: peterreilly
Date: Wed Sep 20 15:35:20 2006
New Revision: 448379

URL: http://svn.apache.org/viewvc?view=rev&rev=448379
Log:
Perforamce:
    do not bother to check if need to expand for
    strings that do not have $

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

Modified: ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java?view=diff&rev=448379&r1=448378&r2=448379
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java Wed Sep 20 
15:35:20 2006
@@ -249,8 +249,8 @@
      */
     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();



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to