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 37958] New: - Redirector does not call ChainReaderHelper.setProject
Date Mon, 19 Dec 2005 14:09:09 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=37958>.
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=37958

           Summary: Redirector does not call ChainReaderHelper.setProject
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jeremy@las-inc.com


When a ChainReaderHelper is used in the Concat, LoadFile and LoadProperties
tasks, the FilterMapper type, and FileUtils (or ResourceUtils now), the Project
is set on each ChainReaderHelper instance. But the Redirector does not set the
Project.

This makes it difficult to have a custom filter that can write to the log from a
redirector in (for example) an Exec task.

The fix is easy: add this line:

    helper.setProject(managingTask.getProject());

after each instatiation of ChainReaderHelper (lines 520, 549 and 587) in
taskdefs/Redirector.java.

-- 
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