You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/07/12 11:10:20 UTC

[jira] [Created] (ARCHETYPE-503) Unit tests with archetype-post-generate.groovy fail on Windows

Michael Osipov created ARCHETYPE-503:
----------------------------------------

             Summary: Unit tests with archetype-post-generate.groovy fail on Windows
                 Key: ARCHETYPE-503
                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-503
             Project: Maven Archetype
          Issue Type: Bug
    Affects Versions: 2.4
            Reporter: Michael Osipov
            Assignee: Michael Osipov
             Fix For: 2.5


One test fails with {{IllegalArgumentException}} which is caused by 

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

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)