dion        2003/01/16 14:54:02

  Added:       jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant
                        jellyunit.jelly
  Log:
  Moved from core, as it wasn't being used, and belonged here
  
  Revision  Changes    Path
  1.1                  
jakarta-commons-sandbox/jelly/jelly-tags/ant/src/test/org/apache/commons/jelly/ant/jellyunit.jelly
  
  Index: jellyunit.jelly
  ===================================================================
  <?xml version="1.0"?>
  <!--
   ! FIXME: Move to ant taglib?
   !-->
  <j:jelly xmlns:j="jelly:core" xmlns:test="jelly:junit" xmlns:ant="jelly:ant">
  
    <ant:fileScanner var="scanner">
      <ant:fileset dir="src/test" includes="**/suite.jelly"/>
    </ant:fileScanner>
  
        <j:if test="${empty outputfile}">
                        <j:set var="outputfile" value="target/jellyunit.xml"/>
    </j:if>
    
    <ant:echo>Running all JellyUnit tests and generating file ${outputfile}</ant:echo>
        
        <j:file name="${outputfile}">
                <tests>
                  <j:forEach var="file" items="${scanner.iterator()}">
        
                        <j:set var="uri" value="${file.toURL().toString()}"/>
                        
                        <suite uri="${uri}">
                                <j:include uri="${uri}"/>
                                        <test:run/>     
                                </suite>        
                                                
                  </j:forEach>
                </tests>
        </j:file>               
  </j:jelly>
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to