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 2006/11/30 14:32:07 UTC
DO NOT REPLY [Bug 41080] - XmlProperty overrides previously set property value when handling duplicate elements
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