pluginReference = this.plugins.get(pluginName);
}
if (pluginReference == null) {
continue;
}
HeadlessBuildPlugin plugin = (HeadlessBuildPlugin) getService(pluginReference);
if (plugin == null) {
continue;
}
try {
plugin.setup(cnf, projectDir, add, versionControlIgnoresPluginTracker, enabledIgnorePlugins);
} catch (Throwable e) {
logger.logError(String.format("Unable to %s headless build file(s) for the %sproject in %s", add ? "add" : "remove", cnf ? "cnf " : "", projectDir.getAbsolutePath()), e);
}
}
}