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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 3.0.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: