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=37341>. 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=37341 Summary: Second call of filter-Task with filtersfile ignores filterfile entries Product: Ant Version: 1.7Alpha (nightly) Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P4 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] When I use a filter task, then copy a file using filtering, then use a second filter task with another filtersfile and copy a file again, the entries of the second filtersfile are completely ignored. So tokens in the copied file are not replaced with filter values given in the second filtersfile. Here is a target to reproduce this behavior: <target name="test_filtersfile"> <filter filtersfile="first.properties" /> <copy file="mycopyfile.test" tofile="mycopiedfile.test" filtering="true"></copy> <filter filtersfile="second.properties" /> <copy file="mycopyfile.test" tofile="mycopiedfile2.test" filtering="true"></copy> </target> mycopyfile.test contains three filter tokens: @my.first.key@, @my.second.key@, @[EMAIL PROTECTED] Values for my.first.key and my.second.key are given in first.properties. Values for my.second.key and my.third.key are defined in second.properties. After the execution of the first copy task the tokens @my.first.key@ and @my.second.key@ in the file mycopiedfile.test are replaced with the values from first.properties, which is the expected behavior. After the execution of the second copy task the file mycopiedfile2.test looks exactly like mycopiedfile.test. The tokens @my.first.key@ and @my.second.key@ are replaced with the values from first.properties. I expected that all tokens are replaced. The @my.first.key@ token with the value from first.properties, the other tokens with the values from second.properties. With Ant version 1.6.2 I get the expected behaviour. With Ant 1.6.5 and the current sources (2005-11-02) from CVS I get the above behaviour. All files I used are attached. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]