You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/10/17 09:20:20 UTC

[camel] branch main updated: CAMEL-18565: camel-main - Should not swallow file not found exception when loading routes, and routes-include-pattern refers to a non existing file.

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

davsclaus 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 8df17b13807 CAMEL-18565: camel-main - Should not swallow file not found exception when loading routes, and routes-include-pattern refers to a non existing file.
8df17b13807 is described below

commit 8df17b138076fe4886ee25fb1058b8ee83a5eac1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Oct 17 11:15:26 2022 +0200

    CAMEL-18565: camel-main - Should not swallow file not found exception when loading routes, and routes-include-pattern refers to a non existing file.
---
 .../src/main/java/org/apache/camel/main/DefaultRoutesCollector.java    | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/core/camel-main/src/main/java/org/apache/camel/main/DefaultRoutesCollector.java b/core/camel-main/src/main/java/org/apache/camel/main/DefaultRoutesCollector.java
index 7cc688f99d1..f1433ce8858 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/DefaultRoutesCollector.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/DefaultRoutesCollector.java
@@ -16,7 +16,6 @@
  */
 package org.apache.camel.main;
 
-import java.io.FileNotFoundException;
 import java.lang.reflect.Modifier;
 import java.util.ArrayList;
 import java.util.Collection;
@@ -151,8 +150,6 @@ public class DefaultRoutesCollector implements RoutesCollector {
                 log.debug("Found {} route builder from locations: {}", builders.size(), includes);
                 answer.addAll(builders);
             }
-        } catch (FileNotFoundException e) {
-            log.debug("No RoutesBuilder found in {}. Skipping detection.", includes);
         } catch (Exception e) {
             throw RuntimeCamelException.wrapRuntimeException(e);
         }