You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by vm...@apache.org on 2005/03/10 17:37:12 UTC

svn commit: r156961 - maven/maven-1/plugins/trunk/plugin/xdocs/tags.xml

Author: vmassol
Date: Thu Mar 10 08:37:10 2005
New Revision: 156961

URL: http://svn.apache.org/viewcvs?view=rev&rev=156961
Log:
Added new <code>assert:assertFileContains</code> tag that verifies if a file contains a specific string.

Modified:
    maven/maven-1/plugins/trunk/plugin/xdocs/tags.xml

Modified: maven/maven-1/plugins/trunk/plugin/xdocs/tags.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/plugin/xdocs/tags.xml?view=diff&r1=156960&r2=156961
==============================================================================
--- maven/maven-1/plugins/trunk/plugin/xdocs/tags.xml (original)
+++ maven/maven-1/plugins/trunk/plugin/xdocs/tags.xml Thu Mar 10 08:37:10 2005
@@ -2,7 +2,7 @@
 
 <!-- 
 /*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@
   <properties>
     <title>Plugin tags</title>
     <author email="dion@apache.org">dIon Gillard</author>
+    <author email="vmassol@apache.org">Vincent Massol</author>
   </properties>
   <body>
     <section name='Overview'>
@@ -35,6 +36,7 @@
         <li><a href='#assert_Tag_Library'>assert</a>
           <ol>
             <li><a href='#assertFileExists_Tag'>assertFileExists</a></li>
+            <li><a href='#assertFileContains_Tag'>assertFileContains</a></li>
             <li><a href='#assertFileNotFound_Tag'>assertFileNotFound</a></li>
             <li><a href='#assertEquals_Tag'>assertEquals</a></li>
           </ol>
@@ -87,6 +89,27 @@
             <td>msg</td>
             <td>Yes</td>
             <td>A message to be displayed when the file doesn't exist</td>
+          </tr>
+        </table>
+      </subsection>
+      <subsection name='assertFileContains Tag'>
+        <p>Fails the build if the given file does not contain the specified string, otherwise no effect.</p>
+        <table>
+          <tr><th>Attribute</th><th>Optional?</th><th>Description</th></tr>
+          <tr>
+            <td>file</td>
+            <td>No</td>
+            <td>The path of the file to be checked</td>
+          </tr>
+          <tr>
+            <td>match</td>
+            <td>No</td>
+            <td>The string to look for in the file</td>
+          </tr>
+          <tr>
+            <td>msg</td>
+            <td>Yes</td>
+            <td>A message to be displayed when the file doesn't contain the specified string</td>
           </tr>
         </table>
       </subsection>



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