commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Closed: (JELLY-105) Nested element's setName() called with name of tag
Date Wed, 01 Sep 2004 17:52:50 GMT

   The following issue has been closed.

   Resolver: dion gillard
       Date: Wed, 1 Sep 2004 10:51 AM

Changed AntTag and commented out name property set
View the issue:

Here is an overview of the issue:
        Key: JELLY-105
    Summary: Nested element's setName() called with name of tag
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: FIXED

    Project: jelly
   Fix Fors:

   Reporter: Vincent Partington

    Created: Fri, 30 Jan 2004 2:01 AM
    Updated: Wed, 1 Sep 2004 10:51 AM

I have written an Ant task that can configure a JMeter task for a specific environment. It
is invoked like this from an ant build.xml file:

    <property file="${}" />
    <property name="nr_threads" value="${}" />
    <property name="nr_iterations" value="${}" />

The <property file="..."/> element specifies a file containing properties to be inserted
into the JMeter task, while the <property name=".." value="..."/> tags specify specific

However, when I put this fragment in a maven.xml file, it doesn't work. It seems the setName()
of all the objects created for the nested <property> elements is invoked with the value
"property". The first <property> element won't work because of that because it doesn't
expect setName() to be invoked when setFile() is invoked too.

I've isolated the problem to line 261 in org.apache.commons.jelly.tags.ant.AntTag:

Why is that line of code there? It seems strange to me, also because the exception is masked.
When I commented out those lines, the problem disappeared.

BTW, I am using Maven 1.0rc1, which includes commons-jelly-tags-ant-20030625.032346.jar.

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message