Added new <code>assert:assertFileContains</code> tag that verifies if a file contains a specific string.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@156961 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
596fb953b0
commit
08ddbc881f
@ -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>
|
||||
@ -90,6 +92,27 @@
|
||||
</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>
|
||||
<subsection name='assertFileNotFound Tag'>
|
||||
<p>Fails the build if the given file does exist, otherwise no effect.</p>
|
||||
<table>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user