for (File file : plugin.getDeployedFiles()) {
base.addURL(file.toURI().toURL());
}
return true;
} catch (UnsupportedClassVersionError e) {
throw new SonarException(String.format("The plugin %s is not supported with Java %s",
plugin.getKey(), SystemUtils.JAVA_VERSION_TRIMMED), e);
} catch (Exception e) {
throw new SonarException(String.format("Fail to extend the plugin %s for %s",
plugin.getBasePlugin(), plugin.getKey()), e);
}
}