What solution you have found for this?
You will have to parametrize the path in your component template and blapackage using property dictionary.
My component template has part defined as:
For discovery, the value for DEPLOY_PATH in property dictionary is /tmp, and during blpackage deployment update this value to /var.
Let me know your requirement and I can assist you further.
Thanks for reply avikal,
Is there any option in blcli to change path in existing component template to ??propname??
I can't find any to delete existing parts, however you can try this:
- Create empty template at some other location using blcli and add local parameter "path" to it. Its value should refer to a particular instance.
- Add parametrized directory part to it using below commands:
SRC_TEMPLATE_DBKEY=`blcli Template addFilePart $TEMPLATE_DBKEY $ASSET_PATH true true false true false true false true false true`
- Then update your old template using following command:
blcli Template updateByDBKey $DEST_TEMPLATE_DBKEY $SRC_TEMPLATE_DBKEY