/** * Initialize this task. * @throws BuildException on error */ @Override public void init() throws BuildException { super.init(); this.toUri = null; this.fromUri = null; this.rcs = null; }
public SSHUserInfo getUserInfo(){ return super.getUserInfo(); }
@Override public void log(final int level, final String message) { base.log(message, Project.MSG_INFO); } });
log("Using known hosts: " + knownHosts, Project.MSG_DEBUG); jsch.setKnownHosts(knownHosts); session.setUserInfo(userInfo); if (getServerAliveIntervalSeconds() > 0) { session.setServerAliveCountMax(getServerAliveCountMax()); session.setServerAliveInterval(getServerAliveIntervalSeconds() * 1000); log("Connecting to " + host + ":" + port); session.connect(); return session;
/** * Sets the path to the file that has the identities of * all known hosts. This is used by SSH protocol to validate * the identity of the host. The default is * <i>${user.home}/.ssh/known_hosts</i>. * * @param knownHosts a path to the known hosts file. */ public void setKnownhosts(String knownHosts) { this.knownHosts = knownHosts; super.setKnownhosts(knownHosts); }
@Override public void init() { super.init(); expectSupport = new ExpectSupportImpl(this); }