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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]