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:47:20 UTC
[jira] [Closed] (ARCHETYPE-503) Unit tests with
archetype-post-generate.groovy fail on Windows
[ https://issues.apache.org/jira/browse/ARCHETYPE-503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed ARCHETYPE-503.
------------------------------------
Resolution: Fixed
Fixed with [51f37fbd809844df8a1a5d4b67641af6b2ff3da8|https://git-wip-us.apache.org/repos/asf?p=maven-archetype.git;a=commit;h=51f37fbd809844df8a1a5d4b67641af6b2ff3da8].
> 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)