maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barrie Treloar" <>
Subject Re: maven-artifact: DefaultWagonManagerTest: suffers windows timestamp resolution issues
Date Thu, 06 Nov 2008 20:18:05 GMT
On Fri, Nov 7, 2008 at 4:26 AM, Brett Porter <> wrote:
> Thread.sleep shouldn't be needed - usually you can set it to a time in the
> past, then read it back so that you know exactly the right value. Usually
> you need to use a low precision (whole seconds, at least) to get an accurate
> time. The less you can use it, the better.
> I don't know of any libraries with common methods for this though.

I think hacked it eclipse pluging to busy loop until currentTime !=
creationTime of File.
But setting the time into the past might make more sense...

Suggestions for where a common routine might be placed?

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

View raw message