<BUG>classpath.addAll(moduleRegistry.getModule("gradle-tooling-api").getImplementationClasspath());
</BUG>
} catch (UnknownModuleException e) {
}
for (Module pluginModule : pluginModuleRegistry.getPluginModules()) {
<BUG>classpath.addAll(pluginModule.getClasspath());
</BUG>
}
<BUG>return new DefaultClassPath(classpath);
}</BUG>
if (name.equals(LOCAL_GROOVY.name())) {

for (Module module : core.getAllRequiredModules()) {
classpath = classpath.plus(module.getClasspath());
}
classpath = classpath.plus(moduleRegistry.getModule("gradle-core-impl").getClasspath());
try {
classpath = classpath.plus(moduleRegistry.getModule("gradle-tooling-api").getImplementationClasspath());
} catch (UnknownModuleException e) {
}
for (Module pluginModule : pluginModuleRegistry.getPluginModules()) {
classpath = classpath.plus(pluginModule.getClasspath());
}
return classpath;
}
