ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/net FTP.java
Date Fri, 12 Sep 2003 20:32:29 GMT
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


Mime
View raw message