ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54883] New: FTP task should support proxies
Date Wed, 24 Apr 2013 10:23:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54883

            Bug ID: 54883
           Summary: FTP task should support proxies
           Product: Ant
           Version: nightly
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Optional Tasks
          Assignee: notifications@ant.apache.org
          Reporter: arno@unkrig.de
    Classification: Unclassified

The FTP task

   
http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTask.java

does not support proxies (which is documented). Alas, I need that feature
urgently, and

   
http://commons.apache.org/proper/commons-net/examples/ftp/FTPClientExample.java

indicates that it should be very easy to add it. Basically, you merely have to
replace

    ftp = new FTPClient();

with

    ftp = new FTPHTTPClient(proxyHost, proxyPort, proxyUser, proxyPassword);

if communication through a proxy is requested.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message