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 Wed, 17 Jul 2002 17:38:25 GMT
jstrachan    2002/07/17 10:38:25

  Modified:    jelly    maven.xml
  Log:
  * Added support for <define:attribute> qualifiers in <define:jellybean> tag
so that default values can be specified, or attributes can be marked as being required.
  
  * also <define:jellybean> now expects an invoke method to be specified, otherwise
an exception is thrown
  
  * the new <define:bean> tag allows regular java beans to be created and bound to a
variable, which is useful for entity based beans such as working with OJB or parsing config
files etc.
  
  There are examples of the above, try running
  
  	maven demo:bean
  	maven demo:jellybean
  
  and it will make much more sense.
  
  Revision  Changes    Path
  1.12      +58 -1     jakarta-commons-sandbox/jelly/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/maven.xml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- maven.xml	15 Jul 2002 11:39:50 -0000	1.11
  +++ maven.xml	17 Jul 2002 17:38:25 -0000	1.12
  @@ -5,6 +5,7 @@
   	<path id="test.classpath">
   	    <pathelement path="${maven.build.dest}"/>
   	    <pathelement path="target/classes"/>
  +	    <pathelement path="target/test-classes"/>
   	    <path refid="maven.dependency.classpath"/>
   	</path>
   	  
  @@ -101,17 +102,73 @@
     </preGoal>
   
   
  +
  +  <!-- demo programs -->
  +
  +  	
  +
     <goal name="demo:soap" prereqs="jelly-task" 
   	description="Runs the example SOAP demo">
   	
   	<jelly file="src/test/org/apache/commons/jelly/define/example.jelly"/> 
     </goal>
   
  +  <goal name="demo:bean" prereqs="jelly-task" 
  +	description="Runs the example of binding beans to tags">
  +
  +<!--	
  +	<jelly file="src/test/org/apache/commons/jelly/define/beanSample.jelly"/> 
  +-->	
  +    <java classname="org.apache.commons.jelly.Jelly" fork="yes">
  +      <classpath refid="test.classpath"/>
  +      <arg value="src/test/org/apache/commons/jelly/define/beanSample.jelly"/> 
  +    </java>
  +  </goal>
  +
  +  <goal name="demo:jellybean" prereqs="jelly-task" 
  +	description="Runs the example of binding jelly beans to tags">
  +	
  +<!--	
  +	<jelly file="src/test/org/apache/commons/jelly/define/jellyBeanSample.jelly"/> 
  +-->	
  +    <java classname="org.apache.commons.jelly.Jelly" fork="yes">
  +      <classpath refid="test.classpath"/>
  +      <arg value="src/test/org/apache/commons/jelly/define/jellyBeanSample.jelly"/>

  +    </java>
  +  </goal>
  +
     <goal name="demo:static" prereqs="jelly-task" 
   	description="Outputs some static XML">
   	
   	<jelly file="src/test/org/apache/commons/jelly/testStatic.jelly"/> 
     </goal>
   
  -          
  +  <goal name="demo:jeez" prereqs="jelly-task" 
  +	description="A demo of the jeez taglib">
  +	
  +	<jelly file="src/test/org/apache/commons/jelly/jeez/example.jelly"/> 
  +  </goal>
  +
  +  <goal name="demo:file" prereqs="jelly-task" 
  +	description="A demo of the fileScanner tag to walk Ant fileSets">
  +	
  +	<jelly file="src/test/org/apache/commons/jelly/ant/filescanner.jelly"/> 
  +  </goal>
  +
  +
  +
  +  <goal name="demo:tagdef" prereqs="java:compile"
  +    description="A demonstration of the use of tagdef inside a Maven build">
  +    
  +    <tagdef name="foo">
  +	  <echo>Called with ${name}. The value of x is ${x} and now will increment</echo>
   	
  +	  <j:set var="x" value="${x + 1}"/>
  +	</tagdef>
  +	
  +	<!-- now lets use the tag -->
  +	<foo name="a"/>
  +	<foo name="b"/>			  			  	
  +  	
  +  </goal>
  +  	          
   </project>
  
  
  

--
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