Browse Source

add a test for <war> to guard against a bug like 6836 from <ear>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@908494 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 15 years ago
parent
commit
6c678fd2c3
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      src/tests/antunit/taskdefs/war-test.xml

+ 11
- 0
src/tests/antunit/taskdefs/war-test.xml View File

@@ -184,4 +184,15 @@
<unzip src="${output}/test.war" dest="${output}/out"/>
<au:assertFileExists file="${output}/out/WEB-INF/lib/ant.jar"/>
</target>

<target name="testOnlyOneWebXml">
<mkdir dir="${input}/WEB-INF"/>
<mkdir dir="${output}"/>
<touch file="${input}/WEB-INF/web.xml"/>
<touch file="${input}/x.xml"/>
<war destfile="${output}/test.war" webxml="${input}/x.xml">
<fileset dir="${input}"/>
</war>
<au:assertLogContains text="Warning: selected war files include a second WEB-INF/web.xml which will be ignored."/>
</target>
</project>

Loading…
Cancel
Save