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 12134] New: - replacefilter gets out of sync
Date Wed, 28 Aug 2002 17:29:38 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12134>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

replacefilter gets out of sync

           Summary: replacefilter gets out of sync
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: peterj@liberate.com


The replacefilter does not require an end token to be present when it does its
replacements, and winds up getting "out of sync" if there are an odd number of
begin tokens.  For example:

build.xml fragment:
<copy todir="/tmp">
  <fileset dir="." includes="test*.java"/>
  <filterchain>
    <replacetokens>
      <token key="FOO" value="bar"/>
    </replacetokens>
  </filterchain>
</copy>

test1.java:
/**
 * @author Me
 * This is not replaced: @FOO@
 */

test2.java:
/**
 * @author Me
 * @author You
 * This is replaced: @FOO@
 */

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message