Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-286

Integration test fails on Windows

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.3
    • Component/s: tomcat7
    • Labels:
    • Environment:
      Windows 7

      Description

      The integration test "simple-war-exec-project" in tomcat7-maven-plugin fail on Windows. The reason for the failure is that the JarArchiveEntry that is created in AbstractExecWarMojo.copyDirectoryContentIntoArchive() contains platform specific path separators, i.e. '\'. The integration test requires that all path separators are '/'.

      According to http://docs.oracle.com/javase/7/docs/api/java/util/zip/ZipEntry.html#isDirectory%28%29 path separators should be '/' and nothing else. So the fix is to transform the path separators of the included file before its name is added to the archive.

        Attachments

        1. MTOMCAT-286.patch
          0.9 kB
          Dennis Lundberg

        Issue Links

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              dennisl@apache.org Dennis Lundberg

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment