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 41291] New: - Recursive FilterSet fails when a token in recursed value appears more than once
Date Thu, 04 Jan 2007 20:29:50 GMT
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=41291>.
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=41291

           Summary: Recursive FilterSet fails when a token in recursed value
                    appears more than once
           Product: Ant
           Version: 1.7.0
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: gmarkh1@co.pierce.wa.us


If a filterset's token value contains another token in the filterset more than
once then the replaceTokens(String line, String parent) method will incorrectly
fail printing the "Infinite loop in tokens." message.  The reason for this is
that once returning from the iReplaceTokens method the current (parent) token
should be removed from the passedTokens Vector.  The passedTokens vector should
be used like a stack always popping the current token as you leave the method.

A work around that currently works is to define multiple discrete filtersets
splitting the token that appears multiple times into its own filterset.  This
bypasses the problems since each filterset is run iteratively over the results
of the previous filterset.

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message