ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Lacoste @ BBC" <lacostej...@altern.org>
Subject Re: Possible bug with copy in Ant 1.5
Date Mon, 14 Oct 2002 08:28:48 GMT
Stefan Bodewig wrote:

>On Wed, 09 Oct 2002, Jerome Lacoste <lacostejbbc@altern.org> wrote:
>
>  
>
>>copy identifies files are up to date while they aren't.
>>    
>>
>
>Works on my machine (running Linux).
>
>Uhm, this here might be the problem on Windows:
>
>                    if (forceOverwrite ||
>                        (file.lastModified() > destFile.lastModified())) {
>
>does anybody know what File#lastModified returns for a file that
>doesn't exist at all?  The javadocs say it is supposed to be 0L, but
>maybe this isn't true for all JDKs?
>

On my machine, with the attached test case:

JVM: 1.4.1 Sun Microsystems Inc.(1.4.1-b21)
OS: Windows NT 4.0
Non-existent file exists?       false
Non-existent file last modified: 0


Mime
View raw message