sormuras / junit-platform-maven-plugin

Maven Plugin launching the JUnit Platform
Apache License 2.0
61 stars 15 forks source link

Delete previous patched-test-runtime directory before copying if it exists #102

Closed dbwiddis closed 1 year ago

dbwiddis commented 1 year ago

Running mvn test multiple times without a clean on a modular project fails, because the code attempts to copy the "patched-test-runtime" directory, which fails if it is not empty.

This PR deletes that directory and its contents before attempting the file copy.

Tests and integration tests still pass after this change.

Fixes #94 Fixes #100

This contribution is my original work and I license the work to the project under the project's open source license.

dbwiddis commented 1 year ago

Tests and integration tests still pass after this change.

Well, locally at least, looks like your GitHub actions need tweaking. :-)