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 40140] New: - Let task/types receive unexpanded attribute(s)
Date Mon, 31 Jul 2006 05:51:00 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=40140>.
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=40140

           Summary: Let task/types receive unexpanded attribute(s)
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: efanomars@yahoo.com


Why: 
  At the moment the value of an attribute is always expanded 
  before it is passed to the element defining it (through setXXX). 
  On the other hand nested text is passed unexpanded to the
  corresponding method (addText) and can be expanded explicitely
  by the implementor of the task/type. Tha't the reason why scripts
  can be passed as nested text without escaping the $ to $$ to
  avoid expressions being misunderstood as Ant properties.
  It would be nice to have the same possibility for attributes,
  so that i.e. short script expressions can be defined in there,
  too, without needing to escape them.
Proposed solution:
  The solution, suggested by Jan Meterne months ago, 
  is to let task/types define an optional method called through
  introspection, which returns the setXXX methods that receive
  the unexpanded parameter.
Compatibility:
  This is backwars compatible as far as no task writer
  out there already defined some method like
    Method [] getUnexpandedAttrSetters()
  returning an array containing some of it's setXXX methods.
  Very, very unlikely :-).

Stefano Marsili
www.efanomars.net/pf

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