You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2006/09/21 00:35:21 UTC

svn commit: r448379 - /ant/core/trunk/src/main/org/apache/tools/ant/PropertyHelper.java

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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org