use of com.gitblit.models.PluginRegistry.PluginRelease in project gitblit by gitblit.
the class PluginManager method lookupRelease.
@Override
public synchronized PluginRelease lookupRelease(String pluginId, String version) {
PluginRegistration reg = lookupPlugin(pluginId);
if (reg == null) {
return null;
}
PluginRelease pv;
if (StringUtils.isEmpty(version)) {
pv = reg.getCurrentRelease(getSystemVersion());
} else {
pv = reg.getRelease(version);
}
return pv;
}
Aggregations