Files
maven-plugins/plugin/src/plugin-test/maven.xml
T

24 lines
755 B
XML

<project xmlns:j="jelly:core" xmlns:u="jelly:util">
<goal name="testPlugin" prereqs="test-generate-docs">
<attainGoal name="clean"/>
</goal>
<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>
<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>
<delete dir="${maven.docs.src}"/>
</goal>
</project>