Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify key value separator in bnd files #5926

Closed
kwin opened this issue Dec 6, 2023 · 3 comments · Fixed by #5927
Closed

Clarify key value separator in bnd files #5926

kwin opened this issue Dec 6, 2023 · 3 comments · Fixed by #5927

Comments

@kwin
Copy link
Contributor

kwin commented Dec 6, 2023

For Bnd 4.0.0 we had the useful page https://bnd.bndtools.org/releases/4.0.0/chapters/790-format.html which clarifies a bit which separator(s) can be used between property/instruction and value. I didn't find any equivalent in the current version's documentation: https://bnd.bndtools.org/releases/7.0.0/.

It seems that =, : as well as just a space works as separator. Can someone confirm?

@kwin kwin changed the title Clarify file format Clarify key value separator in bnd files Dec 6, 2023
@pkriens
Copy link
Member

pkriens commented Dec 6, 2023

bnd is following the property files spec except for the code set. We strictly follow UTF-8.

The property files separator is \s*[:=]?\s*

@pkriens pkriens closed this as completed Dec 6, 2023
@kwin
Copy link
Contributor Author

kwin commented Dec 6, 2023

@pkriens I would like to have this documented in the bnd site. Any existing page where I can add that in a PR or should I come up with a new one?

kwin added a commit to kwin/bnd that referenced this issue Dec 6, 2023
This closes bndtools#5926

Signed-off-by: Konrad Windszus <kwin@apache.org>
@pkriens
Copy link
Member

pkriens commented Dec 7, 2023

I like your attitude! :-)

I think it would probably be best to describe this at https://bnd.bndtools.org/chapters/820-instructions.html or in the repo at https://github.com/bndtools/bnd/blob/master/docs/_chapters/820-instructions.md

Just provide a PR and I will merge it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants