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)

Reply via email to