Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-503

Unit tests with archetype-post-generate.groovy fail on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      One test fails with IllegalArgumentException which is caused by

      def packageFolder = request.getPackage().replaceAll( '\\.', this.'file.separator' );
      

      On Windows, a backslash is employed by replaceAll requires the replacement to be properly escaped. We can unanimously use slashes everywhere.

        Issue Links

          Activity

          Hide
          michael-o Michael Osipov added a comment -
          Show
          michael-o Michael Osipov added a comment - Fixed with 51f37fbd809844df8a1a5d4b67641af6b2ff3da8 .
          Hide
          hudson Hudson added a comment -

          SUCCESS: Integrated in maven-archetype-m3 #214 (See https://builds.apache.org/job/maven-archetype-m3/214/)
          ARCHETYPE-503 Unit tests with archetype-post-generate.groovy fail on (michaelo: rev 51f37fbd809844df8a1a5d4b67641af6b2ff3da8)

          • archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy
          Show
          hudson Hudson added a comment - SUCCESS: Integrated in maven-archetype-m3 #214 (See https://builds.apache.org/job/maven-archetype-m3/214/ ) ARCHETYPE-503 Unit tests with archetype-post-generate.groovy fail on (michaelo: rev 51f37fbd809844df8a1a5d4b67641af6b2ff3da8) archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy

            People

            • Assignee:
              michael-o Michael Osipov
              Reporter:
              michael-o Michael Osipov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development