You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/07 10:29:51 UTC
DO NOT REPLY [Bug 14333] New: -
FTP depends/newer option does not work
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14333>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14333
FTP depends/newer option does not work
Summary: FTP depends/newer option does not work
Product: Ant
Version: 1.5.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Optional Tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: lars@fastrup.net
The depends="yes" option on the FTP task does not work when uploading files to
an IBM AIX 4.3 plafform. The FTP task consequently uploads all specified files
with no respect to the last modified timestamp.
I have tracked it down to the method
isUpToDate(FTPClient ftp, File localFile, String remoteFile) in the FTP.java
file where the lines:
long remoteTimestamp = files[0].getTimestamp().getTime().getTime();
long localTimestamp = localFile.lastModified();
produce results like:
remoteTimestamp = -62167482000000
localTimestamp = 1036573322465
making it quite obvious why depends="yes" does not work.
Maybe there is a bug in the FTPClient class from Net Components library?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>