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

Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:37:12 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:37:13 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:38:03 +0200
Description 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.
{code}
   <path-template>base/${placeholder.template-path}</path-template>
{code}

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:
{code}
   <path-template>base/${placeholder.template-path:default-path}</path-template>
{code}
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.
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.
{code}
   <path-template>base/${placeholder.template-path}</path-template>
{code}

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:
{code}
   <path-template>base/${placeholder.template-path:default-path}</path-template>
{code}
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.
Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:38:19 +0200
Description 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.
{code}
   <path-template>base/${placeholder.template-path}</path-template>
{code}

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:
{code}
   <path-template>base/${placeholder.template-path:default-path}</path-template>
{code}
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.
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.
{code}
   <path-template>base/${placeholder.template-path}</path-template>
{code}

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:
{code}
   <path-template>base/${placeholder.template-path:default-path}</path-template>
{code}
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.
Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:38:25 +0200
Description 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.
{code}
   <path-template>base/${placeholder.template-path}</path-template>
{code}

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:
{code}
   <path-template>base/${placeholder.template-path:default-path}</path-template>
{code}
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.
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.
{code}
   <path-template>base/${placeholder.template-path}</path-template>
{code}

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:
{code}
   <path-template>base/${placeholder.template-path:default-path}</path-template>
{code}
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.
Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:43:00 +0200
Link This issue depends on EASYCOMMONS-20 [ EASYCOMMONS-20 ]
Christophe DENEUX made changes - Fri, 13 Sep 2024 - 16:54:50 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 5.9.0 [ 11106 ]
Resolution Fixed [ 1 ]

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