Uploaded image for project: 'Maven WAR Plugin'
  1. Maven WAR Plugin
  2. MWAR-122

tests failing in trunk on windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1-alpha-1
    • 2.1-alpha-1
    • None
    • None
    • WindowsXP

    Description

      Two tests from trunk failing on windows:
      Failed tests:
      testOverlaysIncludesExcludesWithMultipleDefinitions(org.apache.maven.plugin.war.WarOverlaysTest)
      testOverlaysIncludesExcludesWithMultipleDefinitions2(org.apache.maven.plugin.war.WarOverlaysTest)

      this is causes by hardcoded META-INF/MAINFEST.MF paths in tests.
      File.separator should be used instead of "/" :

      • final FileFilter filter = new FileFilterImpl( webAppDirectory, new String[] {"META-INF/MANIFEST.MF"}

        );
        + final FileFilter filter = new FileFilterImpl( webAppDirectory, new String[]

        {"META-INF" + File.separator + "MANIFEST.MF"}

        );

      Attachments

        Activity

          People

            snicoll Stephane Nicoll
            pikus Tomasz Pik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: