ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject Re: cvs commit: ant/src/main/org/apache/tools/ant/util
Date Tue, 20 Apr 2004 15:11:41 GMT
--- wrote:
>   +    /**
>   +     * get the granularity of file timestamps.
>   +     * The choice is made on OS, which is
> incorrect -it should really be
>   +     * by filesystem. We do not have an easy way
> to probe for file systems,
>   +     * however.

Funny you should mention that, Steve... I was screwing
around with this concept for Windows... NTFS seems to
have a granularity of < 0ms, which I wanted to account
for... Seems that NT, 2k, and XP have an executable in
their normal path called CHKNTFS.EXE, which can detect
the NTFS filesystem on local drives.  Not perfect, but
maybe a start... I thought about creating a static
HashSet of NTFS File roots (drives) in FileUtils when
Os.isFamily("windows"), but I was unable to decide how
to behave, for example, when <copy>ing files from a
known NTFS filesystem to another, and vice-versa....
any thoughts?


Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message