You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jv...@apache.org on 2002/06/03 06:31:55 UTC

cvs commit: jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant example_tasks.jelly filescanner.jelly show_properties.jelly

jvanzyl     2002/06/02 21:31:55

  Modified:    jelly/src/test/org/apache/commons/jelly/ant
                        example_tasks.jelly filescanner.jelly
                        show_properties.jelly
  Log:
  Fixing line endings, removing tabs.
  
  Revision  Changes    Path
  1.2       +18 -1     jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant/example_tasks.jelly
  
  Index: example_tasks.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant/example_tasks.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- example_tasks.jelly	2 Jun 2002 17:29:02 -0000	1.1
  +++ example_tasks.jelly	3 Jun 2002 04:31:55 -0000	1.2
  @@ -1 +1,18 @@
  -<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core" xmlns="jelly:ant">
  Lets start by calling the echo task
	
  <!-- this example attempts to invoke some Ant tasks -->
  <echo message="Invoking the echo task from inside Jelly; the Maven repository is ${lib.repo}"/>	  	

  <!-- lets try invoke a program -->
  <java classname="org.apache.commons.jelly.Jelly" fork="yes">
    <classpath refid="test.classpath"/>
    <arg value="src/test/org/apache/commons/jelly/show_args.jelly"/> 
    <arg value="one"/> 
    <arg value="two"/> 
    <arg value="three"/> 
  </java>

  We should be back to the Jelly script again now...    
</j:jelly>
  \ No newline at end of file
  +<?xml version="1.0"?>
  +<j:jelly xmlns:j="jelly:core" xmlns="jelly:ant">
  +  Lets start by calling the echo task
  +    
  +  <!-- this example attempts to invoke some Ant tasks -->
  +  <echo message="Invoking the echo task from inside Jelly; the Maven repository is ${lib.repo}"/>          
  +
  +  <!-- lets try invoke a program -->
  +  <java classname="org.apache.commons.jelly.Jelly" fork="yes">
  +    <classpath refid="test.classpath"/>
  +    <arg value="src/test/org/apache/commons/jelly/show_args.jelly"/> 
  +    <arg value="one"/> 
  +    <arg value="two"/> 
  +    <arg value="three"/> 
  +  </java>
  +
  +  We should be back to the Jelly script again now...    
  +</j:jelly>
  
  
  
  1.2       +17 -1     jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant/filescanner.jelly
  
  Index: filescanner.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant/filescanner.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- filescanner.jelly	2 Jun 2002 17:29:02 -0000	1.1
  +++ filescanner.jelly	3 Jun 2002 04:31:55 -0000	1.2
  @@ -1 +1,17 @@
  -<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core" xmlns="jelly:ant">

  <fileScanner var="scanner">
    <fileset dir="src/taglibs" includes="**/build.xml"/>
  </fileScanner>
    
  Iterating through build files
  
  <j:forEach var="file" items="${scanner.iterator()}">
  
  	<!-- here we could parse the file or process it in some way -->
  	<!-- such as by calling <ant> with the given build.xml file -->
  	
  	Found <j:expr value="${file.absolutePath}"/>
  </j:forEach>
</j:jelly>
  \ No newline at end of file
  +<?xml version="1.0"?>
  +<j:jelly xmlns:j="jelly:core" xmlns="jelly:ant">
  +
  +  <fileScanner var="scanner">
  +    <fileset dir="src/taglibs" includes="**/build.xml"/>
  +  </fileScanner>
  +    
  +  Iterating through build files
  +  
  +  <j:forEach var="file" items="${scanner.iterator()}">
  +  
  +    <!-- here we could parse the file or process it in some way -->
  +    <!-- such as by calling <ant> with the given build.xml file -->
  +      
  +    Found <j:expr value="${file.absolutePath}"/>
  +  </j:forEach>
  +</j:jelly>
  
  
  
  1.2       +42 -7     jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant/show_properties.jelly
  
  Index: show_properties.jelly
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/test/org/apache/commons/jelly/ant/show_properties.jelly,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- show_properties.jelly	2 Jun 2002 17:29:02 -0000	1.1
  +++ show_properties.jelly	3 Jun 2002 04:31:55 -0000	1.2
  @@ -1,7 +1,42 @@
  -<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core">

  -<html>
  -  <body>
  -    <h1>Ant properties</h1>

	<p>The project name is <b><j:expr value="${project.name}"/></b>
	</p>
	
  -    <table>
      <tr>
        <th>Targets</th>
      </tr>

      <j:forEach var="iter" items="${project.targets}">
        <tr>
          <td><j:expr value="${iter.key}"/></td>
        </tr>
      </j:forEach>
    </table>

    <table>
      <tr>
        <th>Property Name</th>
        <th>Property Value</th>
      </tr>

      <j:forEach var="iter" items="${project.getProperties()}">
        <tr>
          <td><j:expr value="${iter.key}"/></td>
          <td><j:expr value="${iter.value}"/></td>
        </tr>
      </j:forEach>
    </table>

  </body>

  -</html>

  -</j:jelly>
  \ No newline at end of file
  +<?xml version="1.0"?>
  +<j:jelly xmlns:j="jelly:core">
  +
  +<html>
  +  <body>
  +
  +    <h1>Ant properties</h1>
  +
  +    <p>The project name is <b><j:expr value="${project.name}"/></b>
  +    </p>
  +
  +    <table>
  +      <tr>
  +        <th>Targets</th>
  +      </tr>
  +
  +      <j:forEach var="iter" items="${project.targets}">
  +        <tr>
  +          <td><j:expr value="${iter.key}"/></td>
  +        </tr>
  +      </j:forEach>
  +    </table>
  +
  +    <table>
  +      <tr>
  +        <th>Property Name</th>
  +        <th>Property Value</th>
  +      </tr>
  +
  +      <j:forEach var="iter" items="${project.getProperties()}">
  +        <tr>
  +          <td><j:expr value="${iter.key}"/></td>
  +          <td><j:expr value="${iter.value}"/></td>
  +        </tr>
  +      </j:forEach>
  +    </table>
  +
  +  </body>
  +
  +</html>
  +
  +</j:jelly>
  
  
  

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