dion 6c4fbaa832 Test versionless war is created
Test dependent jar is copied to web-inf/lib


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114080 13f79535-47bb-0310-9956-ffa450edef68
2003-09-23 14:56:56 +00:00

25 lines
734 B
XML

<project xmlns:j="jelly:core" xmlns:u="jelly:util">
<goal name="testPlugin" prereqs="test-war">
<attainGoal name="clean"/>
</goal>
<goal name="test-war">
<attainGoal name="war"/>
<j:set var="expectedFile"
value="${maven.build.dir}/test-maven-war-plugin.war"/>
<u:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not generated</fail>
</j:if>
<j:set var="expectedFile"
value="${maven.build.dir}/test-maven-war-plugin/WEB-INF/lib/commons-logging-1.0.3.jar"/>
<u:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not generated</fail>
</j:if>
</goal>
</project>