This patch fixes the case where not all tokens are found. Previously, the code searched for the next token from where the last one was found. This is not necessary and in fact problematic as the line it is searching has already had the previous token replaced so the contents have been changed. Starting the search from the beginning of the line is the desired behavior.
? Translate.diff Index: Translate.java =================================================================== RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/i18n/Translate.java,v retrieving revision 1.19 diff -r1.19 Translate.java 516c516 < startIndex = line.indexOf(startToken, endIndex + etLength); --- > startIndex = line.indexOf(startToken);
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>