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 Mon, 23 Aug 2004 20:30:44 GMT
antoine     2004/08/23 13:30:44

  Modified:    .        Tag: ANT_16_BRANCH WHATSNEW
               src/main/org/apache/tools/ant/taskdefs/optional/net Tag:
                        ANT_16_BRANCH FTP.java
  Log:
  FTP tas, getTimeDiff was returning wrong value
  PR: 30595
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.503.2.129 +2 -0      ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.503.2.128
  retrieving revision 1.503.2.129
  diff -u -r1.503.2.128 -r1.503.2.129
  --- WHATSNEW	23 Aug 2004 14:15:46 -0000	1.503.2.128
  +++ WHATSNEW	23 Aug 2004 20:30:44 -0000	1.503.2.129
  @@ -32,6 +32,8 @@
   
   * checksum fileext property doc wrong. Bugzilla 30787.
   
  +* FTP task, getTimeDiff method was returning wrong value. Bugzilla 30595.
  +
   Changes from Ant 1.6.1 to Ant 1.6.2
   ===================================
   
  
  
  
  No                   revision
  No                   revision
  1.52.2.9  +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.52.2.8
  retrieving revision 1.52.2.9
  diff -u -r1.52.2.8 -r1.52.2.9
  --- FTP.java	9 Mar 2004 17:01:51 -0000	1.52.2.8
  +++ FTP.java	23 Aug 2004 20:30:44 -0000	1.52.2.9
  @@ -1497,7 +1497,7 @@
                   FTPFile [] ftpFiles = ftp.listFiles(tempFile.getName());
                   if (ftpFiles.length == 1) {
                       long remoteTimeStamp = ftpFiles[0].getTimestamp().getTime().getTime();
  -                    returnValue = remoteTimeStamp - localTimeStamp;
  +                    returnValue = localTimeStamp - remoteTimeStamp;
                   }
                   ftp.deleteFile(ftpFiles[0].getName());
               }
  
  
  

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


Mime
View raw message