[jboss-jira] [JBoss JIRA] Created: (JBJMX-99) Ant task <jmx><setAttribute> problem : unable to use <value> tag inside

Benoit Lavenier (JIRA) jira-events at jboss.com
Fri Aug 25 02:08:45 EDT 2006


Ant task <jmx><setAttribute> problem : unable to use <value> tag inside
-----------------------------------------------------------------------

                 Key: JBJMX-99
                 URL: http://jira.jboss.com/jira/browse/JBJMX-99
             Project: JBoss JMX
          Issue Type: Bug
    Affects Versions: JBossAS-4.0.0
         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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list