You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/08/01 12:09:30 UTC

cvs commit: jakarta-commons-sandbox/jelly maven.xml

jstrachan    2002/08/01 03:09:30

  Modified:    jelly    maven.xml
  Log:
  minor patch to make the demo:tagdef demo a little cleaner; though this demo only works with a recent build of CVS HEAD of Maven, since its demonstrating the use of <tagdef> inside Maven, rather than spawning another JVM and using the local Jelly build.
  
  Revision  Changes    Path
  1.27      +5 -1      jakarta-commons-sandbox/jelly/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/maven.xml,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- maven.xml	1 Aug 2002 09:53:18 -0000	1.26
  +++ maven.xml	1 Aug 2002 10:09:30 -0000	1.27
  @@ -384,12 +384,16 @@
       About to define the foo tag...
       
       <tagdef name="foo">
  +      <j:if test="${x == null}">
  +        <j:set var="x" value="${0}"/>
  +      </j:if>
   	  <echo>Called with ${name}. The value of x is ${x} and now will increment</echo>    	
   	  <j:set var="x" value="${x + 1}"/>
  +	  <echo>Value is now ${x}</echo>    	
   	</tagdef>
   	
   	Now about to invoke the foo tag...
  -	<foo name="a" x="0"/>
  +	<foo name="a" x="1"/>
   	<foo name="b"/>			  			  
   	
   	Done
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>