You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/12/02 19:36:46 UTC

DO NOT REPLY [Bug 37760] New: - Helper method 'setMapper' on PropertySet does not work

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