- Use assert taglib in tests. The plugin must be installed to test anyway.

- Fix test loop bugs


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115679 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion
2004-07-06 22:22:36 +00:00
parent 2be5db4494
commit 6b62b775b7

View File

@@ -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>