public File fetchToolPackage()

in server/src/jetbrains/buildServer/swabra/HandleProvider.java [51:62]


  public File fetchToolPackage(@NotNull final ToolVersion toolVersion, @NotNull final File targetDirectory) throws ToolException {
    final File location = new File(targetDirectory, HANDLE_EXE);
    try {
      final String url = HandleToolType.HTTPS_LIVE_SYSINTERNALS_COM_HANDLE_EXE;
      LOG.info("Downloading package from '" + url + "'");
      URLDownloader.download(url, mySSLTrustStoreProvider.getTrustStore(), location);
    } catch (Throwable e) {
      throw new ToolException("Failed to fetch " + HANDLE_TOOL + ": " + e.getMessage(), e);
    }
    LOG.debug("Successfully downloaded Sysinternals handle.exe to " + location);
    return location;
  }