ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Terry Steichen" <>
Subject Re: Copying Question vis-a-vis Windows NT
Date Mon, 28 Oct 2002 18:37:14 GMT

I suspect you're right about the timing leeway.  However, as I mentioned, no
problem Win98->WinME, and Win98->WinNT.  But neither WinNT->WinME or
WinNT->Win98 works (on either the FAT or NTFS volume).  I was wondering if
there is a problem, if the <depend> tag might work?



----- Original Message -----
From: "Dominique Devienne" <>
To: "'Ant Users List'" <>
Sent: Monday, October 28, 2002 11:15 AM
Subject: RE: Copying Question vis-a-vis Windows NT

> I'll probably get corrected by someone more knowledgeable about this, but
> older versions of Windows (i.e. based on the Win95 code based, using older
> FAT filesystems as opposed to NTFS), including WinME, do not report file
> modification times very accurately, and the Ant code allows for a 2
> leeway on these older platforms.
> When copying from WinME to WinNT, the modification time leeway takes
> or WinNT reports the modification time correctly. When going the other
> either WinNT does not use the 2 seconds leeway, or the WinME file-system
> reports incorrect/imprecise modification times.
> I'm not sure there's much that could be done to fix this, short of writing
> the actual modification times separately to a file in each directory, and
> use that file if it exists.
> Is your WinNT machine using a NTFS file-system?
> Are your Win98/ME machines using FAT?
> I hope this sheds a little light on the issue. --DD
> -----Original Message-----
> From: Terry Steichen []
> Sent: Saturday, October 26, 2002 5:42 PM
> To: Ant Users List
> Subject: Copying Question vis-a-vis Windows NT
> When I use a standard <copy> task between a local Windows98 directory and
> network directory hosted on a WindowsME machine, it works exactly as it
> should.  But, when I use precisely the same script on a WindowsNT machine
> targeting the Windows ME (or Windows 98) machines, Ant appears to copy
> indiscriminantly, without regard to the prior existence of identical files
> on the target machines.
> This is the simple Ant file I've used for testing.  On the NT, it will
> repeat the copying as many times as you run it, but on the Win98, it will
> actually copy the files only the first time (as it should).
> <project name="testing" default="backup" >
>     <target name="backup" >
>          <copy todir="e:/copy_test" preservelastmodified="yes">
>               <fileset dir="c:/copy_test">
>                    <include name="*.*"/>
>               </fileset>
>          </copy>
>          <copy todir="f:/copy_test" preservelastmodified="yes">
>               <fileset dir="c:/copy_test">
>                    <include name="*.*"/>
>               </fileset>
>          </copy>
>      </target>
> </project>
> Is there any record of Windows NT behaving differently from other Ant
> (I've searched through the mailing list without luck on this topic, though
> vaguely recall reading something relating to it some time ago.)
> Thanks in advance,
> Terry
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

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

View raw message