This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doap-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 12e1410  Replace plexus-utils StringUtils and FileUtils calls with the 
JDK
12e1410 is described below

commit 12e14108b8ecd0fbb37dab39f6ac9030beb9fde6
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Wed Nov 18 04:03:34 2026 +0000

    Replace plexus-utils StringUtils and FileUtils calls with the JDK
---
 src/main/java/org/apache/maven/plugin/doap/DoapMojo.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java 
b/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
index e394a18..3b5fe66 100644
--- a/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
+++ b/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
@@ -26,6 +26,7 @@ import java.io.Reader;
 import java.io.Writer;
 import java.net.MalformedURLException;
 import java.net.URL;
+import java.nio.file.Files;
 import java.text.DateFormat;
 import java.text.ParseException;
 import java.text.SimpleDateFormat;
@@ -67,7 +68,6 @@ import org.apache.maven.project.ProjectBuildingException;
 import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.settings.Settings;
 import org.codehaus.plexus.i18n.I18N;
-import org.codehaus.plexus.util.FileUtils;
 import org.codehaus.plexus.util.StringUtils;
 import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
 import org.codehaus.plexus.util.xml.XMLWriter;
@@ -514,7 +514,7 @@ public class DoapMojo extends AbstractMojo {
         Writer w;
         try {
             if (!outputFile.getParentFile().exists()) {
-                FileUtils.mkdir(outputFile.getParentFile().getAbsolutePath());
+                Files.createDirectories(outputFile.getParentFile().toPath());
             }
 
             w = new XmlStreamWriter(outputFile);

Reply via email to