ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44472] If there is just a (not empty) directory SCP returns "No such File"
Date Fri, 21 Aug 2009 11:17:56 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44472


Stefan Bodewig <bodewig@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #1 from Stefan Bodewig <bodewig@apache.org> 2009-08-21 04:17:55 PDT ---
Unless I'm misunderstanding what you describe it seems to work for me (may be a
different version of JSch):

stefan@v30161:~/ant> pwd
/home/stefan/ant
stefan@v30161:~/ant> ls -l
total 4
drwxr-xr-x  2 stefan users 4096 2009-08-21 13:09 bar
stefan@v30161:~/ant> ls -l bar/
total 0
-rw-r--r--  1 stefan users 0 2009-08-21 13:09 baz

You see, /home/stefan/ant only contains a single directory.

Build file on a different machine

<project>
  <scp file="stefan:***@v30161:/home/stefan/ant/**" todir="."/>
</project>

Result:

$ ./build.sh -f ../../Temp/s.xml
Buildfile: c:\Temp\s.xml
      [scp] Connecting to v30161:22
      [scp] Receiving file: /home/stefan/ant/**
      [scp] Creating: c:\Temp\bar
      [scp] Receiving: baz : 0
      [scp] File transfer time: 0,0 Average Rate: ? B/s
      [scp] done

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message