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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: