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:27:37 GMT
antoine     2004/08/23 13:27:37

  Modified:    .        WHATSNEW
               src/main/org/apache/tools/ant/taskdefs/optional/net FTP.java
  Log:
  FTP getTimeDiff was returning wrong value
  PR: 30595
  
  Revision  Changes    Path
  1.652     +2 -0      ant/WHATSNEW
  
  Index: WHATSNEW
  ===================================================================
  RCS file: /home/cvs/ant/WHATSNEW,v
  retrieving revision 1.651
  retrieving revision 1.652
  diff -u -r1.651 -r1.652
  --- WHATSNEW	23 Aug 2004 14:15:05 -0000	1.651
  +++ WHATSNEW	23 Aug 2004 20:27:37 -0000	1.652
  @@ -78,6 +78,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
   ===================================
   
  
  
  
  1.61      +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.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- FTP.java	9 Mar 2004 16:48:32 -0000	1.60
  +++ FTP.java	23 Aug 2004 20:27:37 -0000	1.61
  @@ -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