commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject cvs commit: jakarta-commons-sandbox/jelly maven.xml
Date Thu, 01 Aug 2002 10:09:30 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message