]
Mr X commented on JBAS-6537:
----------------------------
Can anyone suggest a workaround or alternative library to accomplish setting an attribute
while we wait for a fix?
Ant task <jmx><setAttribute> problem : unable to use
<value> tag inside
-----------------------------------------------------------------------
Key: JBAS-6537
URL:
https://jira.jboss.org/jira/browse/JBAS-6537
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: Windows XP,
JRE 1.5
Eclipse 3.2
Ant 1.6.5
Reporter: Benoit Lavenier
The Ant task JMX (org.jboss.ant.JMX) has a code error in the subclass "Setter"
(used by <setAttribute> sub task)
The methode named setValue in Setter subclass should be "addValue"
Please refer to the folowwing url :
http://ant.apache.org/manual/develop.html , and the
"Supporting nested elements" section
I think the following code will works fine :
// "setValue" method (of subclass Setter) remaned in
"addValue"
public void addValue(Param value)
{
// This will only consider the last <value> tag, if more than one tag
this.value = value;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: