Fix building Maven sample on Windows

This commit is contained in:
Andy Wilkinson
2015-10-06 17:46:27 +01:00
parent 75e965c782
commit 6443ed177e

View File

@@ -61,7 +61,7 @@ public class SampleBuildConfigurer {
mavenBuild.description = "Builds the ${name} sample with Maven"
mavenBuild.group = "Build"
mavenBuild.workingDir = this.workingDir
mavenBuild.commandLine = [isWindows() ? "mvnw.cmd" : "./mvnw", 'clean', 'package']
mavenBuild.commandLine = [isWindows() ? "${new File(this.workingDir).absolutePath}/mvnw.cmd" : './mvnw', 'clean', 'package']
mavenBuild.dependsOn dependencies
mavenBuild.doFirst {