You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ji...@codehaus.org on 2003/11/08 16:20:06 UTC

[jira] Created: (JELLY-95) invokeBody does not seem to work with nested tags

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=JELLY-95


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JELLY-95
    Summary: invokeBody does not seem to work with nested tags
       Type: Bug

     Status: Unassigned
   Priority: Major

 Time Spent: Unknown
  Remaining: Unknown

    Project: jelly
 Components: 
             core / taglib.core

   Assignee: 
   Reporter: Vincent Massol

    Created: Sat, 8 Nov 2003 9:19 AM
    Updated: Sat, 8 Nov 2003 9:19 AM
Environment: commons-jelly-tags-define-20030211.142932.jar
commons-jelly-tags-ant-20030625.032346.jar
commons-jelly-20030902.160215.jar

Description:
Here is an example:

<project
  default="mytest"
  xmlns:j="jelly:core"
  xmlns:maven="jelly:maven"
  xmlns:ant="jelly:ant"
  xmlns:define="jelly:define"
  xmlns:mytaglib="mytaglib">

  <define:taglib uri="mytaglib">
    <define:tag name="mytag">
      <ant:condition property="ok">
        <define:invokeBody/>
      </ant:condition>
    </define:tag>
  </define:taglib>

  <goal name="mytest">

    <mytaglib:mytag>
      <ant:equals arg1="arg" arg2="arg"/>
    </mytaglib:mytag>

    Result = ${ok}
    
  </goal>

  <goal name="mytest2">

    <ant:condition property="ok2">
      <ant:equals arg1="arg" arg2="arg"/>
    </ant:condition>

    Result = ${ok2}
    
  </goal>
  
</project>

This results in:

E:\Dev\jakarta-cactus\integration\maven\sample>maven mytest
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

mytest:
    [condition] [ERROR] Error in class org.apache.tools.ant.taskdefs.ConditionTask

BUILD FAILED
File...... file:/E:/Dev/jakarta-cactus/integration/maven/sample/
Element... ant:condition
Line...... 11
Column.... 36
You must nest a condition into <condition>
Total time: 2 seconds
Finished at: Sat Nov 08 16:12:38 CET 2003

E:\Dev\jakarta-cactus\integration\maven\sample>

And:

E:\Dev\jakarta-cactus\integration\maven\sample>maven mytest2
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT

BUILD SUCCESSFUL
Total time: 2 seconds
Finished at: Sat Nov 08 16:17:31 CET 2003

E:\Dev\jakarta-cactus\integration\maven\sample>

Any idea?
Thanks
-Vincent


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/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