rootBuildScriptNormalized = Util.replaceMacro(rootBuildScriptNormalized, build.getBuildVariableResolver());
normalizedRootBuildScriptDir = new FilePath(build.getModuleRoot(), rootBuildScriptNormalized);
}
ArgumentListBuilder args = new ArgumentListBuilder();
if (useWrapper) {
<BUG>FilePath gradleWrapperFile = getGradleWrapperFile(build, launcher, env);
</BUG>
if( !gradleWrapperFile.exists() ) {
listener.fatalError("Unable to find Gradle Wrapper");
return false;

rootBuildScriptNormalized = Util.replaceMacro(rootBuildScriptNormalized, build.getBuildVariableResolver());
normalizedRootBuildScriptDir = new FilePath(build.getModuleRoot(), rootBuildScriptNormalized);
}
ArgumentListBuilder args = new ArgumentListBuilder();
if (useWrapper) {
FilePath gradleWrapperFile = getGradleWrapperFile(build, launcher, env, normalizedRootBuildScriptDir);
if( !gradleWrapperFile.exists() ) {
listener.fatalError("Unable to find Gradle Wrapper");
return false;
