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
This commit is contained in:
dion
2003-09-23 14:56:56 +00:00
parent ff8b83cbb6
commit 6c4fbaa832
2 changed files with 11 additions and 5 deletions

View File

@@ -7,13 +7,19 @@
<goal name="test-war">
<attainGoal name="war"/>
<!-- <j:set var="expectedFile"
value="${maven.build.dir}/test-maven-ear-plugin-1.0-SNAPSHOT.ear"/>
<attainGoal name="ear"/>
<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>

View File

@@ -8,7 +8,7 @@
<id>test-maven-war-plugin</id>
<!-- a short but descriptive name for the project -->
<name>Test Maven War Plugin</name>
<name>Test project for Maven War Plugin</name>
<!-- The version of the project under development, e.g.
1.1, 1.2, 2.0-dev -->