From 40b8196df0f06a52caae1b272daa620df74c8577 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 20 Sep 2006 22:35:20 +0000 Subject: [PATCH] Perforamce: do not bother to check if need to expand for strings that do not have $ git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@448379 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/PropertyHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();