Use assert taglib in plugin test
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:assert="assert"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-java-compile">
|
||||
@@ -25,10 +26,6 @@
|
||||
|
||||
<goal name="test-java-compile">
|
||||
<attainGoal name="java:compile"/>
|
||||
<j:set var="expectedFile" value="${maven.build.dest}/org/apache/maven/Dummy.class"/>
|
||||
<util:file var="file" name="${expectedFile}" />
|
||||
<j:if test="${!(file.exists())}">
|
||||
<fail>${expectedFile} not generated</fail>
|
||||
</j:if>
|
||||
<assert:assertFileExists file="${maven.build.dest}/org/apache/maven/Dummy.class"/>
|
||||
</goal>
|
||||
</project>
|
||||
Reference in New Issue
Block a user