mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
":" and "=" characters escaped when generating properties file #258
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Valentin-Rault on GitHub (Dec 17, 2024).
Context:
I am generating a .properties file but the characters ":" and "=" are being escaped.
Example:
The generated default.properties file looks like this
I am expecting the token and url to not escape the characters.
@holzensp commented on GitHub (Dec 18, 2024):
Pkl's renderers always aim to render according to a format's standards. If you look at the documentation for
java.util.Properties::store(here) it says:And, indeed, if you load the generated
.propertiesfile, the result is as expected:produces
Why is it important for you that it does not escape?
@Valentin-Rault commented on GitHub (Dec 18, 2024):
I am attempting to generate multiple sentry.properties files for our CI as we have multiple projects. I might have been trying to fix an issue that isn't there by trying to not have it escape.
The generated sentry.properties file that was generated by their wizard does not escape those characters and therefore I was trying to achieve the same result when generating it with PKL.
I will have more insights after building my app with Xcode, there I will be able to see if the token and url are being loaded correctly.
I will post a message on this issue once this is done.
Thank you for the clarifying message.
@Valentin-Rault commented on GitHub (Dec 20, 2024):
Indeed it looks like the token and url are being loaded correctly. Thank you for the clarification
@bioball commented on GitHub (Dec 23, 2024):
Closing this as resolved. Please let us know if there's any more questions here.