Class FTPTask.Granularity

java.lang.Object
org.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.taskdefs.optional.net.FTPTask.Granularity
Enclosing class:
FTPTask

public static class FTPTask.Granularity extends EnumeratedAttribute
represents one of the valid timestamp adjustment values recognized by the timestampGranularity attribute.

A timestamp adjustment may be used in file transfers for checking uptodateness. MINUTE means to add one minute to the server timestamp. This is done because FTP servers typically list timestamps HH:mm and client FileSystems typically use HH:mm:ss. The default is to use MINUTE for PUT actions and NONE for GET actions, since GETs have the preserveLastModified option, which takes care of the problem in most use cases where this level of granularity is an issue.