throw new BuildException("Failed to create worker directory: " + workingDirectory.getPath());
}
processBuilder.directory(workingDirectory);
}
final Map<String, String> environment = processBuilder.environment();
if (config.isNewEnvironment())
{
environment.clear();
}