Skip to content

Commit

Permalink
Fix for JENKINS-9553: use FilePath to build path to gradle wrapper on…
Browse files Browse the repository at this point in the history
… slave
  • Loading branch information
rklaren committed Oct 19, 2011
1 parent f2e46e4 commit 6630df2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/hudson/plugins/gradle/Gradle.java
Expand Up @@ -137,9 +137,8 @@ private boolean performTask(boolean dryRun, AbstractBuild<?, ?> build, Launcher
if (ai == null) {
if (useWrapper) {
String execName = (Functions.isWindows()) ? GradleInstallation.WINDOWS_GRADLE_WRAPPER_COMMAND : GradleInstallation.UNIX_GRADLE_WRAPPER_COMMAND;
FilePath workspace = build.getModuleRoot();
File gradleWrapperFile = new File(workspace.getRemote(), execName);
args.add(gradleWrapperFile.getAbsolutePath());
FilePath gradleWrapperFile = new FilePath(build.getModuleRoot(), execName);
args.add(gradleWrapperFile.getRemote());
} else {
args.add(launcher.isUnix() ? GradleInstallation.UNIX_GRADLE_COMMAND : GradleInstallation.WINDOWS_GRADLE_COMMAND);
}
Expand Down

0 comments on commit 6630df2

Please sign in to comment.