Browse Source

make ftp task compile against commons-net 2.0 and 1.4.1. PR 47669. Submitted by Alexander Kurtakov

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@803830 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
b38b45047d
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      WHATSNEW
  2. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java

+ 3
- 0
WHATSNEW View File

@@ -829,6 +829,9 @@ Other changes:
can be told to not download files that already exist locally.
Bugzilla Report 40058.

* Ant now builds against commons-net 2.0 as well.
Bugzilla Report 47669.

Changes from Ant 1.7.0 TO Ant 1.7.1
=============================================



+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java View File

@@ -2447,7 +2447,7 @@ public class FTP
log("login succeeded", Project.MSG_VERBOSE);

if (binary) {
ftp.setFileType(org.apache.commons.net.ftp.FTP.IMAGE_FILE_TYPE);
ftp.setFileType(org.apache.commons.net.ftp.FTP.BINARY_FILE_TYPE);
if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) {
throw new BuildException("could not set transfer type: "
+ ftp.getReplyString());


Loading…
Cancel
Save