Use assert taglib in plugin test
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115601 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:assert="assert"
|
||||
xmlns:doc="doc">
|
||||
|
||||
<goal name="testPlugin" prereqs="clean,test-xdoc,test-jsltosite">
|
||||
@@ -26,23 +27,13 @@
|
||||
<goal name="test-xdoc">
|
||||
<j:set var="maven.docs.src" value="${basedir}/xdocs-replacement"/>
|
||||
<attainGoal name="xdoc"/>
|
||||
|
||||
<j:set var="expectedFile"
|
||||
value="${maven.docs.dest}/test.html"/>
|
||||
<util:file var="file" name="${expectedFile}" />
|
||||
<j:if test="${!(file.exists())}">
|
||||
<fail>${expectedFile} not generated</fail>
|
||||
</j:if>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/test.html"/>
|
||||
</goal>
|
||||
|
||||
|
||||
<goal name="test-jsltosite">
|
||||
<doc:jslToSite srcdir="${basedir}/testdocs" />
|
||||
<j:set var="expectedFile" value="${maven.docs.dest}/testjsltosite.html"/>
|
||||
<util:file var="file" name="${expectedFile}" />
|
||||
<j:if test="${!(file.exists())}">
|
||||
<fail>${expectedFile} not generated</fail>
|
||||
</j:if>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/testjsltosite.html"/>
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
@@ -26,6 +26,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.7.3-SNAPSHOT" date="in CVS">
|
||||
<action dev="dion" type="update">Use assert taglib in plugin tests</action>
|
||||
<action dev="carlos" type="add" issue="MPXDOC-112">Add instructions to checkout with maven to cvs-usage page</action>
|
||||
</release>
|
||||
<release version="1.7.2" date="2004-06-25">
|
||||
|
||||
Reference in New Issue
Block a user