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 41080] - XmlProperty overrides previously set property value when handling duplicate elements
Date Thu, 30 Nov 2006 13:32:07 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=41080>.
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=41080





------- Additional Comments From andy.wood@yoomedia.com  2006-11-30 05:32 -------
Oops - the suggested fix should read:

         if (addedAttributes.containsKey(name)) {
             // If ...
             value = (String) addedAttributes.get(name) + "," + value;
             getProject().setProperty(name, value);
         }
         else if (getProject().getProperty(name) == null) {
             getProject().setProperty(name, value);
             addedAttributes.put(name, value);
         }
         else {
             log("Override ignored for property " + name, Project.MSG_VERBOSE);
         }
         if (id != null) {
             getProject().addReference(id, value);
         }

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