You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/21 10:46:13 UTC

(maven-integration-testing) 03/03: Restore the deprecated filterFile(..., Properties) overload

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

slachiewicz pushed a commit to branch agent/maven-executor-migration-310
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit 5f9d0187d175154098aab1df48ebca3dd38de230
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Mon Sep 21 12:45:29 2026 +0200

    Restore the deprecated filterFile(..., Properties) overload
    
    Same fix as the maven-3.9.x branch: maven-verifier kept this overload
    alongside the Map<String,String> one and MavenITmng0768OfflineModeTest
    still calls it with a Properties instance.
---
 .../src/main/java/org/apache/maven/it/Verifier.java            | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/Verifier.java b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/Verifier.java
index e9d908abb..0af801b5b 100644
--- a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/Verifier.java
+++ b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/Verifier.java
@@ -586,6 +586,16 @@ public class Verifier {
      * @throws IOException If the file could not be filtered.
      * @since 1.2
      */
+    /**
+     * @deprecated use {@link #filterFile(String, String, String, Map)}
+     */
+    @Deprecated
+    @SuppressWarnings({"rawtypes", "unchecked"})
+    public File filterFile(String srcPath, String dstPath, String fileEncoding, Properties filterProperties)
+            throws IOException {
+        return filterFile(srcPath, dstPath, fileEncoding, (Map) filterProperties);
+    }
+
     public File filterFile(String srcPath, String dstPath, String fileEncoding, Map<String, String> filterMap)
             throws IOException {
         File srcFile = new File(getBasedir(), srcPath);