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.

        Attachments

          Issue Links

            Activity

              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: