DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=30456>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30456 replaceregexp fails to insert '/' characters Summary: replaceregexp fails to insert '/' characters Product: Ant Version: 1.6.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When using ${basedir} in replacement, appropriate '/' characters are not inserted. Example: <project ... basedir=".." ...> <target name="copy"> <copy todir="${basedir}/src/to" file="${basedir}/src/from/testfile.xml" overwrite-"yes" /> </target> <target name="edit" depends="copy"> <replaceregexp pattern="C:/original/pattern" replace="${basedir}/x/y/z"> <fileset file="${basedir}/src/to/testfile.xml"/> </replaceregexp> </target> </project> If this is run from directory 'C:\projects\TestBug\src\from', the value of ${basedir} should be "C:/projects/TestBug/src", and the replacement should read: "C:/projects/TestBug/src/x/y/z". Instead, the replacement does read: "C:projectsTestBugsrc/x/y/z". Circumvention: Annoying and inelegant, but any property which is fully defined will work ok instead of ${basedir}. Note that defining basedir explicitly on the project definition also does not work. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]