Missing space when using custom p2 touchpoint action #225
cristianvalentincojocaru
started this conversation in
General
Replies: 1 comment 1 reply
-
Does the value still look correct in the content.xml, e.g., like this:
You've tried ${#20} for encoding? I really think someone (like you) will need to debug the process of parsing what's in the content.xml up to passing it to your custom touchpoint code to figure out what's going wrong... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody,
We have created a custom p2 touchpoint action that basically appends a preference in one of the settings file of our product. Unfortunately, we have encountered an issue regarding the parameters that we give to said action, more specifically, with the spaces at the start of our string value. It appends the value but completely ignores the space as the beginning of the String. We need the empty space for good functioning of our action.
Here is the action call:
instructions.configure=com.test.product.custom.action.native.appendPreference(scopeType:configuration,bundleID:rcp.modular.core,prefName:storedRepositories,prefValue: repo Configuration Tool \! http${#58}//www.website.com/lgfiles/updates/Eclipse/Product,createMissing:true,addDuplicate:false);
And the code used to append the value:
Right after "prefValue" we give a string value that contains a space at the beginning. We have tried to enclose the string in quotes (""), use unicode, hex code and css code values but with no success. The only option we found is to hardcode a space but we do not really want to do that.
Is there any reason why the whitespaces in the parameters are not taken into consideration? And if so, is there any way to add the space?
Beta Was this translation helpful? Give feedback.
All reactions