DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39373>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39373


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #18147|0                           |1
        is obsolete|                            |




------- Additional Comments From [EMAIL PROTECTED]  2006-04-26 15:16 -------
Created an attachment (id=18186)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18186&action=view)
an implementation of sftp task

The attached patch is a quick hack to implement sftp task, which
is based on ftp task and using jsch for sftp functionality.
It accepts attributes for ftp and scp tasks except for 'binary',
'passive', 'separator' and 'umask'.  

It seems following tasks are working on my testing, however, frankly to say,
I'm not familiar with ftp task and have never used and run it, so I may
mis-understand its operational semantics.  Comments, suggestions and feedbacks
are welcome.

PS 1. that patch is for ant_20060426105634.tar.gz 
PS 2. jsch-0.1.27 is required.

  <sftp action="send"
       server="${server}"
       userid="${userid}"
       password="${password}"
       remotedir="incoming"
       depends="yes">
     <fileset dir="htdocs/manual"/>
  </sftp>

  <sftp action="get"
       server="${server}"
       userid="${userid}"
       password="${password}">
    <fileset dir="htdocs/manual" >
      <include name="**/*.html"/>
    </fileset>
  </sftp>

 <sftp action="del"
       server="${server}"
       userid="${userid}"
       password="${password}" >
    <fileset>
      <include name="**/*.tmp"/>
    </fileset>
  </sftp>

  <sftp action="list"
       server="${server}"
       userid="${userid}"
       password="${password}"
       listing="data/sftp.listing" >
    <fileset>
      <include name="**"/>
    </fileset>
  </sftp>

  <sftp action="mkdir"
       server="${server}"
       userid="${userid}"
       password="${password}"
       remotedir="test" />

  <sftp action="chmod"
       server="${server}"
       userid="${userid}"
       password="${password}"
       chmod="0700" >
    <fileset>
      <include name="*.log"/>
    </fileset>
  </sftp>


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to