This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch plexus3 in repository https://gitbox.apache.org/repos/asf/maven-resources-plugin.git
commit 9cbc00e31b84f99c0cd6cab7fa0e5ab52d47f852 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Mon Nov 3 00:17:43 2025 +0100 `PlexusFileUtils` Refaster recipes Co-authored-by: Moderne <[email protected]> --- pom.xml | 2 +- .../maven/plugins/resources/stub/MavenProjectBuildStub.java | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 1a168ca..c8720a6 100644 --- a/pom.xml +++ b/pom.xml @@ -137,7 +137,7 @@ under the License. <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> - <version>2.20.0</version> + <version>2.21.0</version> <scope>test</scope> </dependency> <dependency> diff --git a/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBuildStub.java b/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBuildStub.java index 490fcc9..0d01e11 100644 --- a/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBuildStub.java +++ b/src/test/java/org/apache/maven/plugins/resources/stub/MavenProjectBuildStub.java @@ -27,6 +27,8 @@ import java.util.HashMap; import org.apache.maven.model.Build; import org.codehaus.plexus.util.FileUtils; +import static org.apache.commons.io.FileUtils.deleteDirectory; + public class MavenProjectBuildStub extends MavenProjectBasicStub { protected Build build; @@ -145,19 +147,19 @@ public class MavenProjectBuildStub extends MavenProjectBasicStub { public void cleanBuildEnvironment() throws Exception { if (FileUtils.fileExists(resourcesDirectory)) { - FileUtils.deleteDirectory(resourcesDirectory); + deleteDirectory(new File(resourcesDirectory)); } if (FileUtils.fileExists(testResourcesDirectory)) { - FileUtils.deleteDirectory(testResourcesDirectory); + deleteDirectory(new File(testResourcesDirectory)); } if (FileUtils.fileExists(outputDirectory)) { - FileUtils.deleteDirectory(outputDirectory); + deleteDirectory(new File(outputDirectory)); } if (FileUtils.fileExists(testOutputDirectory)) { - FileUtils.deleteDirectory(testOutputDirectory); + deleteDirectory(new File(testOutputDirectory)); } }
