@Override
    protected PluginWrapper loadPluginFromPath(Path pluginPath) throws PluginException {
        // First unzip any ZIP files
        try {
            pluginPath = FileUtils.expandIfZip(pluginPath);
        } catch (Exception e) {
            log.warn("Failed to unzip " + pluginPath, e);
            return null;
        }

        return super.loadPluginFromPath(pluginPath);
    }
@ Override protected PluginWrapper loadPluginFromPath ( Path pluginPath ) throws PluginException { try { pluginPath = FileUtils . expandIfZip ( pluginPath ) ; } catch ( Exception e ) { log . warn ( "Failed to unzip " + pluginPath , e ) ; return null ; } return super . loadPluginFromPath ( pluginPath ) ; }
Load a plugin from disk. If the path is a zip file, first unpack
@param pluginPath plugin location on disk
@return PluginWrapper for the loaded plugin or null if not loaded
@throws PluginException if problems during load