Package org.syncany.plugins

Examples of org.syncany.plugins.Plugin


  }

  @Test
  public void testLocalPluginInfo() {
    String pluginId = getPluginId();
    Plugin plugin = Plugins.get(pluginId);

    assertNotNull("PluginInfo should not be null.", plugin);
    assertEquals("Plugin ID should different.", pluginId, plugin.getId());
    assertNotNull("Plugin version should not be null.", plugin.getVersion());
    assertNotNull("Plugin name should not be null.", plugin.getName());
  }
View Full Code Here


    }
  }

  private PluginOperationResult executeRemove() throws Exception {
    String pluginId = options.getPluginId();
    Plugin plugin = Plugins.get(pluginId);

    if (plugin == null) {
      throw new Exception("Plugin not installed.");
    }
View Full Code Here

    List<String> conflictingIds = pluginInfo.getConflictingPluginIds();
    List<String> conflictingInstalledIds = new ArrayList<String>();
   
    if (conflictingIds != null) {
      for (String pluginId : conflictingIds) {
        Plugin plugin = Plugins.get(pluginId);
       
        if (plugin != null) {
          logger.log(Level.INFO, "- Conflicting plugin " + pluginId + " found.");
          conflictingInstalledIds.add(pluginId);
        }
View Full Code Here

    return result;
  }

  private void checkPluginNotInstalled(String pluginId) throws Exception {
    Plugin locallyInstalledPlugin = Plugins.get(pluginId);

    if (locallyInstalledPlugin != null) {
      throw new Exception("Plugin '" + pluginId + "' already installed. Use 'sy plugin remove " + pluginId + "' to uninstall it first.");
    }
View Full Code Here

        extendedPluginInfo.setLocalPluginInfo(localPluginInfo);
        extendedPluginInfo.setInstalled(true);
       
        // Test if plugin can be uninstalled
        Plugin plugin = Plugins.get(localPluginInfo.getPluginId());
        File pluginJarFile = getJarFile(plugin);
        boolean canUninstall = canUninstall(pluginJarFile);
       
        extendedPluginInfo.setCanUninstall(canUninstall);       
View Full Code Here

TOP

Related Classes of org.syncany.plugins.Plugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.