Package org.syncany.operations.daemon.messages

Examples of org.syncany.operations.daemon.messages.PluginInstallExternalEvent


      throw new Exception("Plugin with ID '" + pluginId + "' not found");
    }

    checkPluginCompatibility(pluginInfo);
   
    eventBus.post(new PluginInstallExternalEvent(pluginInfo.getDownloadUrl()));
   
    File tempPluginJarFile = downloadPluginJar(pluginInfo.getDownloadUrl());
    String expectedChecksum = pluginInfo.getSha256sum();
    String actualChecksum = calculateChecksum(tempPluginJarFile);
View Full Code Here


    byte[] actualChecksum = FileUtil.createChecksum(tempPluginJarFile, "SHA256");
    return StringUtil.toHex(actualChecksum);
  }

  private PluginOperationResult executeInstallFromLocalFile(File pluginJarFile) throws Exception {
    eventBus.post(new PluginInstallExternalEvent(pluginJarFile.getAbsolutePath()));
   
    PluginInfo pluginInfo = readPluginInfoFromJar(pluginJarFile);

    checkPluginNotInstalled(pluginInfo.getPluginId());
    checkPluginCompatibility(pluginInfo);
View Full Code Here

    return result;
  }

  private PluginOperationResult executeInstallFromUrl(String downloadJarUrl) throws Exception {
    eventBus.post(new PluginInstallExternalEvent(downloadJarUrl));
   
    File tempPluginJarFile = downloadPluginJar(downloadJarUrl);
    PluginInfo pluginInfo = readPluginInfoFromJar(tempPluginJarFile);

    checkPluginNotInstalled(pluginInfo.getPluginId());
View Full Code Here

TOP

Related Classes of org.syncany.operations.daemon.messages.PluginInstallExternalEvent

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.