Petals CDK

Add support of default value on placeholder definition

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 5.8.0
  • Fix Version/s: 5.9.0
  • Component/s: configuration
  • Security Level: Public
  • Description:
    Hide

    Placeholders are used to be able to externalize the configuration of service unit. In the SU JBI descriptor, placeholders are used as following where the placeholder names are defined in the properties file of the component.

    <path-template>base/${placeholder.template-path}</path-template>

    If the property placeholder.template-path is not defined in the properties file of the component, the parameter path-template will be set with the value base/${placeholder.template-path}. So it i needed to redefined all placeholder names as property in the component properties file.

    Please add support of default value defining the placeholder, as following:

    <path-template>base/${placeholder.template-path:default-path}</path-template>

    thus the parameter path-template will be set with the value base/default-path if no property placeholder.template-path is defined in the component properties file.

    Show
    Placeholders are used to be able to externalize the configuration of service unit. In the SU JBI descriptor, placeholders are used as following where the placeholder names are defined in the properties file of the component.
    <path-template>base/${placeholder.template-path}</path-template>
    If the property placeholder.template-path is not defined in the properties file of the component, the parameter path-template will be set with the value base/${placeholder.template-path}. So it i needed to redefined all placeholder names as property in the component properties file. Please add support of default value defining the placeholder, as following:
    <path-template>base/${placeholder.template-path:default-path}</path-template>
    thus the parameter path-template will be set with the value base/default-path if no property placeholder.template-path is defined in the component properties file.
  • Environment:
    -

Issue Links

Activity

People

Dates

  • Created:
    Fri, 13 Sep 2024 - 16:36:47 +0200
    Updated:
    Fri, 13 Sep 2024 - 16:54:50 +0200
    Resolved:
    Fri, 13 Sep 2024 - 16:54:50 +0200