ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Mehner" <wom...@iamanidiot.com>
Subject Patch for ProjectHelper
Date Thu, 13 Jul 2000 09:50:16 GMT

If a '$' is encountered WITHOUT a following '{', it should simply be 
appended to sb and the prev increased by one. Increasing prev by 2 
might result in not beeing able to deal with something like "$${var}" 
... the old code resulted in losing the '$' ...

Niklas 
------------------------------------------------------------------

Index: ProjectHelper.java
===================================================================
RCS file: /home/cvspublic/jakarta-
ant/src/main/org/apache/tools/ant/ProjectHelper.java,v
retrieving revision 1.19
diff -u -r1.19 ProjectHelper.java
--- ProjectHelper.java	2000/07/12 12:40:28	1.19
+++ ProjectHelper.java	2000/07/13 09:37:23
@@ -471,8 +471,8 @@
                 prev = pos + 1;
             }
             else if (value.charAt( pos + 1 ) != '{' ) {
-                sb.append( value.charAt( pos + 1 ) );
-                prev=pos+2; // XXX
+               sb.append( value.charAt( pos ) );
+               prev=pos+1;
             } else {
                 int endName=value.indexOf( '}', pos );
                 if( endName < 0 ) {


Mime
View raw message