ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim <...@komi.mts.ru>
Subject [PATCH] Method ProjectHelper.replaceProperties "eating" symbol '$' if next symbol is not '{'
Date Fri, 29 Mar 2002 11:47:50 GMT
Index: ProjectHelper.java
===================================================================
RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/ProjectHelper.java,v
retrieving revision 1.81
diff -u -r1.81 ProjectHelper.java
--- ProjectHelper.java	27 Mar 2002 09:48:20 -0000	1.81
+++ ProjectHelper.java	29 Mar 2002 11:35:21 -0000
@@ -483,8 +483,8 @@
             //peek ahead to see if the next char is a property or not
             else if (value.charAt(pos + 1) != '{' ) {
                 //not a property: insert the char as a literal
-                fragments.addElement(value.substring(pos + 1, pos + 2));
-                prev = pos + 2;
+                fragments.addElement(value.substring(pos, pos + 1));
+                prev = pos + 1;
             } else {
                 //property found, extract its name or bail on a typo
                 int endName = value.indexOf('}', pos);
Mime
View raw message