You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2004/07/07 00:22:36 UTC

cvs commit: maven-plugins/plugin/src/plugin-test maven.xml

dion        2004/07/06 15:22:36

  Modified:    plugin/src/plugin-test maven.xml
  Log:
  - Use assert taglib in tests. The plugin must be installed to test anyway.
  - Fix test loop bugs
  
  Revision  Changes    Path
  1.3       +7 -10     maven-plugins/plugin/src/plugin-test/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/maven-plugins/plugin/src/plugin-test/maven.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- maven.xml	4 Mar 2004 18:37:56 -0000	1.2
  +++ maven.xml	6 Jul 2004 22:22:36 -0000	1.3
  @@ -15,7 +15,10 @@
    * limitations under the License.
    */
    -->
  -<project xmlns:j="jelly:core" xmlns:u="jelly:util">
  +<project xmlns:assert="assert"
  +         xmlns:j="jelly:core" 
  +         xmlns:u="jelly:util">
  +         
     <goal name="testPlugin" prereqs="test-generate-docs">
       <attainGoal name="clean"/>
     </goal>
  @@ -23,18 +26,12 @@
     <goal name="test-generate-docs">
       <attainGoal name="plugin:generate-docs"/>
   
  -    <u:file var="docsSource" name="${maven.docs.src}"/>
  -    <j:if test="${!(docsSource.exists())}">
  -      <fail>no xdocs directory created</fail>
  -    </j:if>
  +    <assert:assertFileExists file="${maven.docs.src}"/>
   
   	<u:tokenize var="fileList" delim=",">navigation.xml,goals.xml</u:tokenize>
   
  -	<j:forEach var="file" items="fileList">
  -      <u:file var="navXml" name="${maven.docs.src}/navigation.xml"/>
  -      <j:if test="${!(navXml.exists())}">
  -        <fail>no ${file} created</fail>
  -      </j:if>
  +	<j:forEach var="file" items="${fileList}">
  +	  <assert:assertFileExists file="${maven.docs.src}/${file}"/>
       </j:forEach>
       <delete dir="${maven.docs.src}"/>    
     </goal>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org