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

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 77fc60d0ba0f Fix doc generation by removing broken symlink
77fc60d0ba0f is described below

commit 77fc60d0ba0f6be95fadbf4d4a7dd3b99c0479a7
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Wed Feb 11 10:36:28 2026 +0100

    Fix doc generation by removing broken symlink
    
    a broken symlink was created for test purpose and left in the target
    folder. The docucmentation is scanning this folder to detect files to
    include in the website and is causing a build error when there is a
    broken symlink.
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../mina/integration/MinaSftpAdvancedFileOperationsIT.java  | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-mina-sftp/src/test/java/org/apache/camel/component/file/remote/mina/integration/MinaSftpAdvancedFileOperationsIT.java
 
b/components/camel-mina-sftp/src/test/java/org/apache/camel/component/file/remote/mina/integration/MinaSftpAdvancedFileOperationsIT.java
index bd98d612597c..e5527f321049 100644
--- 
a/components/camel-mina-sftp/src/test/java/org/apache/camel/component/file/remote/mina/integration/MinaSftpAdvancedFileOperationsIT.java
+++ 
b/components/camel-mina-sftp/src/test/java/org/apache/camel/component/file/remote/mina/integration/MinaSftpAdvancedFileOperationsIT.java
@@ -17,6 +17,7 @@
 package org.apache.camel.component.file.remote.mina.integration;
 
 import java.io.File;
+import java.io.IOException;
 import java.nio.file.Files;
 import java.nio.file.Path;
 
@@ -25,6 +26,7 @@ import org.apache.camel.Exchange;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.file.GenericFileOperationFailedException;
 import org.apache.camel.component.mock.MockEndpoint;
+import org.junit.jupiter.api.AfterEach;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 import org.junit.jupiter.api.Timeout;
@@ -51,6 +53,8 @@ public class MinaSftpAdvancedFileOperationsIT extends 
MinaSftpServerTestSupport
     private String ftpRootDir;
     private String testId;
 
+    private Path brokenSymlink;
+
     @BeforeEach
     public void doPostSetup() {
         service.getFtpRootDir().toFile().mkdirs();
@@ -59,6 +63,13 @@ public class MinaSftpAdvancedFileOperationsIT extends 
MinaSftpServerTestSupport
         testId = String.valueOf(System.currentTimeMillis() % 100000);
     }
 
+    @AfterEach
+    void tearDown() throws IOException {
+        if (brokenSymlink != null) {
+            Files.delete(brokenSymlink);
+        }
+    }
+
     private String baseUri() {
         return "mina-sftp://localhost:"; + service.getPort() + "/" + ftpRootDir
                + 
"?username=admin&password=admin&strictHostKeyChecking=no&useUserKnownHostsFile=false";
@@ -450,7 +461,7 @@ public class MinaSftpAdvancedFileOperationsIT extends 
MinaSftpServerTestSupport
 
         // Create symbolic link to non-existent target
         try {
-            Files.createSymbolicLink(linkPath, nonExistentTarget);
+            brokenSymlink = Files.createSymbolicLink(linkPath, 
nonExistentTarget);
         } catch (Exception e) {
             log.warn("Could not create broken symlink: {}", e.getMessage());
             return;

Reply via email to