You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@jakarta.apache.org on 2004/08/27 10:41:20 UTC
[jira] Commented: (JELLY-105) Nested element's setName() called with name of tag
The following comment has been added to this issue:
Author: dion gillard
Created: Fri, 27 Aug 2004 1:40 AM
Body:
Anything I can use to create a testcase?
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/JELLY-105?page=comments#action_37851
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JELLY-105
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JELLY-105
Summary: Nested element's setName() called with name of tag
Type: Bug
Status: Unassigned
Priority: Major
Project: jelly
Components:
taglib.ant
Assignee:
Reporter: Vincent Partington
Created: Fri, 30 Jan 2004 2:01 AM
Updated: Fri, 27 Aug 2004 1:40 AM
Description:
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:
<configurejmeter
basedir="${basedir}/tests"
destdir="${current.build.dir}"
includes="*.jmx"
>
<property file="${environment.properties}" />
<property name="nr_threads" value="${test.nr.threads}" />
<property name="nr_iterations" value="${test.nr.iterations}" />
</configurejmeter>
The <property file="..."/> element specifies a file containing properties to be inserted into the JMeter task, while the <property name=".." value="..."/> tags specify specific properties.
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:
http://jakarta.apache.org/commons/jelly/libs/ant/xref/org/apache/commons/jelly/tags/ant/AntTag.html#260
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.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org