private String getScpDir(String path) { return String.format("%s:%s@%s:%s", userInfo.getName(), userInfo.getKeyfile() == null ? userInfo.getPassword() : userInfo.getPassphrase(), scp.getHost(), path); }
if (getUserInfo().getPassword() == null && getUserInfo().getKeyfile() == null) { throw new BuildException(
throw new BuildException("Username is required."); if (userInfo.getKeyfile() == null && userInfo.getPassword() == null) { throw new BuildException("Password or Keyfile is required.");
private void validateArguments() { if (getHost() == null) { throw new BuildException("Host is required."); } if (getUserInfo().getName() == null) { throw new BuildException("Username is required."); } if (getUserInfo().getKeyfile() == null && getUserInfo().getPassword() == null) { throw new BuildException("Password or Keyfile is required."); } if (getRhost() == null || getLport() == null || getRport() == null) { throw new BuildException("Tunnel information is required. \n Either rhost, lport or rport is not set."); } }
&& getUserInfo().getPassword() == null) { throw new BuildException("Password or Keyfile is required.");
&& getUserInfo().getPassword() == null && getSshKeyData() == null) { throw new BuildException("Password or Keyfile is required.");
&& getUserInfo().getPassword() == null) { throw new BuildException("Password or Keyfile is required.");