Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6537

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • None
    • None
    • None
    • Windows XP,
      JRE 1.5
      Eclipse 3.2
      Ant 1.6.5

    • Low

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

              Unassigned Unassigned
              benlavenier Benoit Lavenier (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: