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

cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ef46e941f Fix infuser pt 2
5ef46e941f is described below

commit 5ef46e941f8f11e35e332be72fea8b36b68fcebb
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Sat Apr 5 17:29:43 2025 +0200

    Fix infuser pt 2
---
 .../test/java/org/apache/maven/cling/executor/MimirInfuser.java  | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git 
a/impl/maven-executor/src/test/java/org/apache/maven/cling/executor/MimirInfuser.java
 
b/impl/maven-executor/src/test/java/org/apache/maven/cling/executor/MimirInfuser.java
index f1c9e6f76c..1918296862 100644
--- 
a/impl/maven-executor/src/test/java/org/apache/maven/cling/executor/MimirInfuser.java
+++ 
b/impl/maven-executor/src/test/java/org/apache/maven/cling/executor/MimirInfuser.java
@@ -45,10 +45,11 @@ public static void infuse(Path userHome) throws IOException 
{
                     Files.copy(realUserWideExtensions, userWideExtensions, 
StandardCopyOption.REPLACE_EXISTING);
 
                     Path mimirProperties = 
userHome.resolve(".mimir").resolve("mimir.properties");
-                    if (Files.isRegularFile(mimirProperties)) {
-                        Files.createDirectories(mimirProperties.getParent());
-                        
Files.copy(Path.of("target/test-classes/ut-mimir.properties"), mimirProperties);
-                    }
+                    Files.createDirectories(mimirProperties.getParent());
+                    Files.copy(
+                            Path.of("target/test-classes/ut-mimir.properties"),
+                            mimirProperties,
+                            StandardCopyOption.REPLACE_EXISTING);
                 }
             }
         }

Reply via email to