Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-95

invokeBody does not seem to work with nested tags

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core / taglib.core
    • None
    • 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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: