I've just implemented it. It works. What is a preferred way of sharing this code in case anyone would like to use it?(patch?)
Maciej Zywno On 11/15/06, Maciej Zywno <[EMAIL PROTECTED]> wrote:
Thanks, I can see that both sshexec and scp tasks use jsch library that do support http proxy connections. Isn't it just a matter of using this support in these tasks? I mean.. I want to extend org.apache.tools.ant.taskdefs.optional.ssh.Scp (Sshexec) classes to use jsch proxy support as it is mentioned here http://www.jcraft.com/jsch/examples/ViaHTTP.java Does it seem feasible? Do you know whether there are any reasons it's not implemented in Ant yet? Thanks again, Maciej Zywno On 11/15/06, Steve Loughran <[EMAIL PROTECTED]> wrote: > > Maciej Zywno wrote: > > As far as I understood from > > http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html, the > > properties you mention are used by "protocol handlers". So I guess > they are > > used by classes that extend e.g. URLStreamHandler e.g. > > sun.net.www.protocol.http.Handler. However scp task uses jsch library( > > http://www.jcraft.com/jsch/) that operates on raw sockets which I > think > > don't use the system proxy settings. > > > > Actually now I'm quite sure ant SCP task cannot go thru firewall. I > hope > > I'm > > wrong. > > ssh doesnt go through firewalls except with socks. If you have a socks > server you may be able to get <ssh> to work. > > commons-vfs has support for webdav and tasks like <v-copy> to copy files > to a virtual filesystem, so if the far end supports webdav you can > upload over http, and hence through the proxy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- zywy
-- zywy