jstrachan 2002/11/12 00:13:09
Modified: jelly project.xml
jelly/src/java/org/apache/commons/jelly/tags/ant AntTag.java
Log:
Added patch supplied by Theo Niemeijer that avoids the body of an Ant tag being
invoked twice by accident.
The getBodyText() invokes the tags body but was incorrectly being called twice.
Many thanks Theo!
Revision Changes Path
1.87 +9 -1 jakarta-commons-sandbox/jelly/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/jelly/project.xml,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- project.xml 7 Nov 2002 08:33:34 -0000 1.86
+++ project.xml 12 Nov 2002 08:13:09 -0000 1.87
@@ -183,8 +183,16 @@
<role>Developer</role>
</roles>
</contributor>
+ <contributor>
+ <name>Theo Niemeijer</name>
+ <email>[EMAIL PROTECTED]</email>
+ <organization></organization>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ </contributor>
</contributors>
-
+
<dependencies>
<dependency>
<id>ant</id>
1.18 +1 -3
jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTag.java
Index: AntTag.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/tags/ant/AntTag.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- AntTag.java 11 Nov 2002 18:57:57 -0000 1.17
+++ AntTag.java 12 Nov 2002 08:13:09 -0000 1.18
@@ -196,9 +196,7 @@
"addText",
addTaskParamTypes );
if (method != null) {
- String text = getBodyText();
-
- Object[] args = { text };
+ Object[] args = { body };
method.invoke(this.task, args);
}
--
To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>