if (fromRootBuildScriptDir) {
<BUG>wrapperScript = Joiner.on("/").skipNulls().join(rootBuildScriptDir, "gradlew");
}</BUG>
return this;
<BUG>}
private FilePath getGradleWrapperFile(AbstractBuild<?, ?> build, Launcher launcher, EnvVars env) throws IOException, InterruptedException {
String execName = (launcher.isUnix()) ? GradleInstallation.UNIX_GRADLE_WRAPPER_COMMAND : GradleInstallation.WINDOWS_GRADLE_WRAPPER_COMMAND;
if( wrapperScript != null && wrapperScript.trim().length() != 0) {
String wrapperScriptNormalized = wrapperScript.trim().replaceAll("[\t\r\n]+", "");
wrapperScriptNormalized = Util.replaceMacro(wrapperScriptNormalized.trim(), env);
wrapperScriptNormalized = Util.replaceMacro(wrapperScriptNormalized, build.getBuildVariableResolver());
execName = wrapperScriptNormalized;
}
return new FilePath(build.getModuleRoot(), execName);</BUG>
}

if (fromRootBuildScriptDir) {
wrapperLocation = rootBuildScriptDir;
}
return this;
}
