From dev-return-50531-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Fri Sep 12 20:32:34 2003 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 7806 invoked from network); 12 Sep 2003 20:32:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Sep 2003 20:32:34 -0000 Received: (qmail 27364 invoked by uid 500); 12 Sep 2003 20:32:19 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 27328 invoked by uid 500); 12 Sep 2003 20:32:19 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 27315 invoked by uid 500); 12 Sep 2003 20:32:19 -0000 Received: (qmail 27312 invoked from network); 12 Sep 2003 20:32:19 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 12 Sep 2003 20:32:19 -0000 Received: (qmail 7762 invoked by uid 1652); 12 Sep 2003 20:32:29 -0000 Date: 12 Sep 2003 20:32:29 -0000 Message-ID: <20030912203229.7761.qmail@minotaur.apache.org> From: antoine@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/net FTP.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N antoine 2003/09/12 13:32:29 Modified: . WHATSNEW src/main/org/apache/tools/ant/taskdefs/optional/net FTP.java Log: send the filename in the proper remote format in the site command done to chmod a file after a put PR: 23143 Revision Changes Path 1.498 +3 -0 ant/WHATSNEW Index: WHATSNEW =================================================================== RCS file: /home/cvs/ant/WHATSNEW,v retrieving revision 1.497 retrieving revision 1.498 diff -u -r1.497 -r1.498 --- WHATSNEW 10 Sep 2003 18:20:45 -0000 1.497 +++ WHATSNEW 12 Sep 2003 20:32:29 -0000 1.498 @@ -219,6 +219,9 @@ * ftp chmod failed when the remote system was UNIX and local system Windows Bugzilla Report 21865. +* ftp put with chmod failed when the remote system was UNIX and local system Windows + Bugzilla Report 23143. + * ftp did not set the ascii mode explicity, causing problems with ftp servers having binary as default 1.52 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java Index: FTP.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- FTP.java 22 Aug 2003 11:23:48 -0000 1.51 +++ FTP.java 12 Sep 2003 20:32:29 -0000 1.52 @@ -1706,7 +1706,7 @@ } else { // see if we should issue a chmod command if (chmod != null) { - doSiteCommand(ftp, "chmod " + chmod + " " + filename); + doSiteCommand(ftp, "chmod " + chmod + " " + resolveFile(filename)); } log("File " + file.getAbsolutePath() + " copied to " + server, Project.MSG_VERBOSE); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org