Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21003

camel-main: Unable to enable debug profile in Camel Quarkus due to FileNotFoundException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.7.0
    • 4.8.0
    • camel-main
    • None
    • Unknown

    Description

      Something I came across when working on this task:

      https://github.com/apache/camel-quarkus/issues/6083

      In Camel Quarkus we have some logic to suppress Camel resolving properties from property sources other then those used by MicroProfile Config:

      https://github.com/apache/camel-quarkus/blob/803e96645110ac555bec08e96d6723521c5487bf/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/main/CamelMainRecorder.java#L46-L48

      And there's a check for it in camel-main here:

      https://github.com/apache/camel/blob/f911e2c1d6fa4561ffb88019889b2d530dd5a2b2/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java#L398

      However, when the 'dev' profile is activated, this check fails because the locations string is concatenated with other info. It'd probably be enough to tweak the if condition to also check if locations ends with ',false'.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: