ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: [scp/sshexec] Is a connection thru HTTP proxy possible? ( setproxy doesn't help)
Date Wed, 15 Nov 2006 17:39:49 GMT
Please create an enhancement request in the bug database...

http://issues.apache.org/bugzilla/enter_bug.cgi?product=Ant&bug_severity
=enhancement

Attach a patch file, as described in the "Fixing the bug" section of the
following page...

http://ant.apache.org/bugs.html

Then email the dev list, asking the commiters to review the fix. Also,
encourage users to vote for the bug.

-Rob A 

> -----Original Message-----
> From: Maciej Zywno [mailto:m.zywno@gmail.com] 
> Sent: Wednesday, November 15, 2006 9:33 AM
> To: Ant Users List
> Subject: Re: [scp/sshexec] Is a connection thru HTTP proxy 
> possible? ( setproxy doesn't help)
> 
> 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 <m.zywno@gmail.com> 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 <stevel@apache.org> 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: user-unsubscribe@ant.apache.org For 
> > > additional commands, e-mail: user-help@ant.apache.org
> > >
> > >
> >
> >
> > --
> > zywy
> 
> 
> 
> 
> --
> zywy
> 


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


Mime
View raw message