mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 05:25:44 +01:00
check plugin package conditions
This commit is contained in:
@@ -240,9 +240,13 @@ public class DefaultPluginManager
|
||||
|
||||
Plugin plugin = JAXB.unmarshal(new File(tempDirectory, "plugin.xml"),
|
||||
Plugin.class);
|
||||
|
||||
// TODO check conditions
|
||||
|
||||
|
||||
PluginCondition condition = plugin.getCondition();
|
||||
|
||||
if ((condition != null) &&!condition.isSupported())
|
||||
{
|
||||
throw new PluginConditionFailedException(condition);
|
||||
}
|
||||
|
||||
AetherPluginHandler aph = new AetherPluginHandler(this, context,
|
||||
configuration);
|
||||
|
||||
Reference in New Issue
Block a user