ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [DO NOT REPLY: Bug 3341] New: ant replace function strips "$" chars within "value" strings
Date Wed, 29 Aug 2001 18:28:00 GMT
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3341

*** shadow/3341	Wed Aug 29 11:28:00 2001
--- shadow/3341.tmp.5639	Wed Aug 29 11:28:00 2001
***************
*** 0 ****
--- 1,56 ----
+ +============================================================================+
+ | ant replace function strips "$" chars within "value" strings               |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3341                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Solaris                 |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: monte@spyonit.com                                            |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ To recreate:
+ 1. save the abug and abug.xml files.
+ 2. ./ant -buildfile abug.xml all
+ 
+ Problem:
+ the "$" within the "blah123:$blah456" replacement string is stripped when 
+ the "$" occurs anywhere but the beginning of the replacement string.
+ The resulting "abug" file has the "$" char stripped from the "blah123:$blah456" 
+ replacement string.
+ 
+ NOTE: "$" at the beginning of a replacement string work OK.
+ But just try to buildup/substitute into a Unix $CLASSPATH variable...
+ 
+ Thanks,
+ Monte Seyer
+ monte@spyonit.com
+ 
+ initial abug file:
+ these all fail...
+ junk=blah123
+ $blah123
+ hello=$blah123
+ blah123
+ 
+ abug.xml file:
+ <project name="abug" default="all" basedir=".">
+         <target name="all">
+                 <replace dir="." includes="abug">
+                         <replacefilter token="blah123" 
+ value="blah123:$blah456"/>
+                 </replace>
+         </target>
+ </project>
+ 
+ resulting abug file:
+ these all fail...
+ junk=blah123:blah456
+ $blah123:blah456
+ hello=$blah123:blah456
+ blah123:blah456

Mime
View raw message