[ http://jira.codehaus.org/browse/MWAR-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=233757#action_233757 ]
Michael Glauche edited comment on MWAR-235 at 8/31/10 6:50 AM: --------------------------------------------------------------- Patch for the WarMojoTest to check duplicate files in a jar. Now the test does (correctly) fail like this: {code} junit.framework.AssertionFailedError: Duplicate Entry in Jar File: WEB-INF/web.xml at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertNull(Assert.java:233) at org.apache.maven.plugin.war.WarMojoTest.assertJarContent(WarMojoTest.java:400) at org.apache.maven.plugin.war.WarMojoTest.testSimpleWar(WarMojoTest.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) {code} was (Author: mglauche): Patch for the WarMojoTest to check duplicate files in a jar > The web.xml file included twice into the result war > --------------------------------------------------- > > Key: MWAR-235 > URL: http://jira.codehaus.org/browse/MWAR-235 > Project: Maven 2.x WAR Plugin > Issue Type: Bug > Affects Versions: 2.1 > Environment: WinXP 32bit sp3, sun JDK .6.0.20, maven 2.2.1 > Reporter: Siarhei_Yarkavy > Priority: Critical > Attachments: asmModule.zip, MWAR-235-test.patch, pom.xml, > screenshot.jpg > > > Please have a look to the attached demo project and screen-shot -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira