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 37760] New: - Helper method 'setMapper' on PropertySet does not work
Date Fri, 02 Dec 2005 18:36:46 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=37760>.
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=37760

           Summary: Helper method 'setMapper' on PropertySet does not work
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: All
               URL: http://svn.apache.org/viewcvs.cgi/ant/core/trunk/src/mai
                    n/org/apache/tools/ant/types/PropertySet.java?rev=279876
                    &view=markup
        OS/Version: other
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: gverig@yahoo.com


public void setMapper(String type, String from, String to) {
        Mapper m = createMapper();
        Mapper.MapperType mapperType = new Mapper.MapperType();
        mapperType.setValue(type);
        m.setFrom(from);
        m.setTo(to);
    }

Note that mapperType is never added to the mapper. This creates a hard-to-debug
problem (especially for a dumb newb like me).
I found this problem on 1.6.5 version of Ant (above link is for current
subversion state for this file). For me the problem occured when I tried to use
<script> to create a CallTarget task with PropertySet.

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