Browse Source

If remotedir has been omitted, make it default to . - PR 23987

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275559 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
db261bb4de
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java

+ 5
- 1
src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java View File

@@ -262,7 +262,11 @@ public class Scp extends SSHBase {
}

setHost(uri.substring(indexOfAt + 1, indexOfPath));
return uri.substring(indexOfPath + 1);
String remotePath = uri.substring(indexOfPath + 1);
if (remotePath.equals("")) {
remotePath = ".";
}
return remotePath;
}

private boolean isRemoteUri(String uri) {


Loading…
Cancel
Save