Skip to content

Conversation

plamentotev
Copy link
Member

The current approach is to copy the file until it gets a timestamp newer than a given reference value.

Java 7 provides a better method to modify a file timestamp - Files.setLastModifiedTime. Use it instead the current approach. Not only it is better suited for the task, but Plexus Utils 3.1.0 no longer updates the timestamp of copied files and the current approach is no longer working one - the tests are running in endless loop.

@plamentotev
Copy link
Member Author

Hmm interesting. The Travis builds are failing but my local builds (Windows and Linux) are ok. Looks like I need to investigate it a bit more.

@khmarbaise
Copy link
Member

I have restarted the build...

@khmarbaise
Copy link
Member

Hi Plamen, cause you have to try it upgrade maven-surefire plugin to 2.20.1 ?

@plamentotev
Copy link
Member Author

plamentotev commented Jan 12, 2018 via email

The current approach is to copy the file until it gets a timestamp
newer than a given reference value.

Java 7 provides a better method to modify a file timestamp -
`Files.setLastModifiedTime`. Use it instead the current approach.
Not only it is better suited for the task, but Plexus Utils 3.1.0
no longer updates the timestamp of copied files and the current
approach is no longer working one - the tests are running
in endless loop.
@plamentotev
Copy link
Member Author

Yep, that did the trick :)

@khmarbaise khmarbaise added the bug label Jan 12, 2018
@khmarbaise khmarbaise added this to the 3.6 milestone Jan 12, 2018
@khmarbaise
Copy link
Member

That looks good..ready from your side for integration?

@plamentotev
Copy link
Member Author

Yep, I'll integrate it in master.

@plamentotev plamentotev deleted the fix-tests-file-timestamp branch January 13, 2018 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants