maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From micha...@apache.org
Subject [3/3] maven-archetype git commit: [ARCHETYPE-503] Unit tests with archetype-post-generate.groovy fail on Windows
Date Tue, 12 Jul 2016 11:42:28 GMT
[ARCHETYPE-503] Unit tests with archetype-post-generate.groovy fail on Windows


Project: http://git-wip-us.apache.org/repos/asf/maven-archetype/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-archetype/commit/51f37fbd
Tree: http://git-wip-us.apache.org/repos/asf/maven-archetype/tree/51f37fbd
Diff: http://git-wip-us.apache.org/repos/asf/maven-archetype/diff/51f37fbd

Branch: refs/heads/master
Commit: 51f37fbd809844df8a1a5d4b67641af6b2ff3da8
Parents: 11907b6
Author: Michael Osipov <michaelo@apache.org>
Authored: Tue Jul 12 13:41:21 2016 +0200
Committer: Michael Osipov <michaelo@apache.org>
Committed: Tue Jul 12 13:41:21 2016 +0200

----------------------------------------------------------------------
 .../META-INF/archetype-post-generate.groovy                        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-archetype/blob/51f37fbd/archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy
----------------------------------------------------------------------
diff --git a/archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy
b/archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy
index 269196b..3ac5757 100644
--- a/archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy
+++ b/archetype-common/src/test/archetypes/fileset_with_postscript-1.0/META-INF/archetype-post-generate.groovy
@@ -2,7 +2,7 @@ println "Executing the archetype-post-generate.groovy script...";
 
 def outputDirectory = new File( request.getOutputDirectory() );
 
-def packageFolder = request.getPackage().replaceAll( '\\.', this.'file.separator' );
+def packageFolder = request.getPackage().replace( '.', '/' );
 
 def toDelete = new File( outputDirectory, request.getArtifactId() + "/src/main/java/${packageFolder}/ToDelete.java"
);
 


Mime
View raw message