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

camel-properties : allow to individually set whether to silently ignore a missing location

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      As today it is possible to set if missing location can be ignored as global option so it is not possible to set mandatory and optional locations.

      It would be nice to have something like:

      PropertiesComponent pc = new PropertiesComponent();
      pc.setLocations(
          pc.propertiesLocation("file:data/properties/common.properties"),       
          pc.optionalPropertiesLocation("file:data/properties/override.properties")
      );
      
      PropertiesComponent pc = new PropertiesComponent();
      pc.setLocation("file:data/properties/common.properties,file:data/properties/override.properties;mandatory=false"
      

      If not explicit set, the value set on PropertiesComponent should be taken.

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: