private void initJSchConfig()

in deploy-runner-agent/src/main/java/jetbrains/buildServer/deployer/agent/ssh/SSHSessionProvider.java [93:110]


  private void initJSchConfig() {
    if (ourJschConfigInitialized) {
      return;
    }

    try {
      ourJschConfigInitialized = true;
      Class initializer = Class.forName("jetbrains.buildServer.util.jsch.JSchConfigInitializer");
      Method initMethod = initializer.getMethod("initJSchConfig", Class.class);
      initMethod.invoke(null, JSch.class);
    } catch (ClassNotFoundException e) {
      myLog.warn("Could not find 'jetbrains.buildServer.util.jsch.JSchConfigInitializer' class in the classpath, skip JSch config initialization");
    } catch (NoSuchMethodException e) {
      myLog.warn("Could not find initJSchConfig method in 'jetbrains.buildServer.util.jsch.JSchConfigInitializer' class, skip JSch config initialization, error: " + e.toString());
    } catch (Throwable e) {
      myLog.warn("Failed to perform JSch config initialization, error: " + e.toString());
    }
  }