ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miesfeld" <miesf...@acm.org>
Subject Re: Possible bug with copy in Ant 1.5
Date Fri, 11 Oct 2002 14:56:23 GMT
On 11 Oct 2002 16:45:01 +0200, 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 Windows XP running Sun's jdk 1.4 I get:

F:\Eds\vSlick\Dfx\Macros>java Test
Non-existent file exists?        false
Non-existent file last modified: 0

--
Mark Miesfeld
miesfeld@acm.org


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message