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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to