ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh Scp.java
Date Fri, 24 Oct 2003 07:57:56 GMT
bodewig     2003/10/24 00:57:56

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ssh Scp.java
  Log:
  If remotedir has been omitted, make it default to . - PR 23987
  
  Revision  Changes    Path
  1.10      +5 -1      ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
  
  Index: Scp.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Scp.java	27 Aug 2003 10:08:25 -0000	1.9
  +++ Scp.java	24 Oct 2003 07:57:55 -0000	1.10
  @@ -262,7 +262,11 @@
           }
   
           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) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message