You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2023/06/17 20:46:06 UTC

[maven-shared-utils] branch deprecate created (now 79c4ea2)

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

elharo pushed a change to branch deprecate
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git


      at 79c4ea2  deprecate forceMkdir since a close replacement exists in Commons IO

This branch includes the following new commits:

     new 79c4ea2  deprecate forceMkdir since a close replacement exists in Commons IO

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-shared-utils] 01/01: deprecate forceMkdir since a close replacement exists in Commons IO

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elharo pushed a commit to branch deprecate
in repository https://gitbox.apache.org/repos/asf/maven-shared-utils.git

commit 79c4ea25319fa32894e290715bb0364fb78bf6b2
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Jun 17 16:45:51 2023 -0400

    deprecate forceMkdir since a close replacement exists in Commons IO
---
 src/main/java/org/apache/maven/shared/utils/io/FileUtils.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java b/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
index 635c66c..a0a0a6f 100644
--- a/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
+++ b/src/main/java/org/apache/maven/shared/utils/io/FileUtils.java
@@ -1098,7 +1098,9 @@ public class FileUtils {
      * @throws IOException if a file already exists with the specified name or the directory is unable to be created
      * @throws IllegalArgumentException if the file contains illegal Windows characters under Windows OS.
      * @see #INVALID_CHARACTERS_FOR_WINDOWS_FILE_NAME
+     * @deprecated use {@code org.apache.commons.io.FileUtils.forceMkdir()}
      */
+    @Deprecated
     public static void forceMkdir(@Nonnull final File file) throws IOException {
         if (Os.isFamily(Os.FAMILY_WINDOWS) && !isValidWindowsFileName(file)) {
             throw new IllegalArgumentException(