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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8114aa0  [MSHARED-1260] Deprecate FileUtils.copyFile and FilterWrapper 
in favor of org.apache.maven.shared.filtering (#147)
8114aa0 is described below

commit 8114aa0a244f4c497e7c00ab729be62ad373ceb0
Author: Elliotte Rusty Harold <[email protected]>
AuthorDate: Mon May 29 11:55:00 2023 +0000

    [MSHARED-1260] Deprecate FileUtils.copyFile and FilterWrapper in favor of 
org.apache.maven.shared.filtering (#147)
    
    * [MSHARED-1260] Deprecate FileUtils.copyFile and FilterWrapper in favor of 
org.apache.maven.shared.filtering
---
 src/main/java/org/apache/maven/shared/utils/io/FileUtils.java | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

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 1ce26eb..be9924d 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
@@ -1663,7 +1663,9 @@ public class FileUtils {
      * @param encoding the file output encoding (only if wrappers is not empty)
      * @param wrappers array of {@link FilterWrapper}
      * @throws IOException if an IO error occurs during copying or filtering
+     * @deprecated use {@code 
org.apache.maven.shared.filtering.FilteringUtils.copyFile()} instead
      */
+    @Deprecated
     public static void copyFile(
             @Nonnull File from, @Nonnull File to, @Nullable String encoding, 
@Nullable FilterWrapper... wrappers)
             throws IOException {
@@ -1672,7 +1674,10 @@ public class FileUtils {
 
     /**
      * Wrapper class for Filter.
+     *
+     * @deprecated use {@code org.apache.maven.shared.filtering.FilterWrapper}
      */
+    @Deprecated
     public abstract static class FilterWrapper {
         /**
          * @param fileReader {@link Reader}
@@ -1682,7 +1687,7 @@ public class FileUtils {
     }
 
     /**
-     * <b>If wrappers is null or empty, the file will be copy only if 
to.lastModified() &lt; from.lastModified() or if
+     * <b>If wrappers is null or empty, the file will be copied only if 
to.lastModified() &lt; from.lastModified() or if
      * overwrite is true</b>
      *
      * @param from the file to copy
@@ -1692,7 +1697,9 @@ public class FileUtils {
      * @param overwrite if true and wrappers is null or empty, the file will 
be copied even if
      *         to.lastModified() &lt; from.lastModified()
      * @throws IOException if an IO error occurs during copying or filtering
+     * @deprecated use {@code 
org.apache.maven.shared.filtering.FilteringUtils.copyFile()} instead
      */
+    @Deprecated
     public static void copyFile(
             @Nonnull File from,
             @Nonnull File to,

Reply via email to