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

bnd-maven-plugin: Clarify property handling #5375

Closed
kwin opened this issue Sep 21, 2022 · 0 comments · Fixed by #5379
Closed

bnd-maven-plugin: Clarify property handling #5375

kwin opened this issue Sep 21, 2022 · 0 comments · Fixed by #5379
Assignees
Milestone

Comments

@kwin
Copy link
Contributor

kwin commented Sep 21, 2022

According to

Properties beanProperties = new BeanProperties();
beanProperties.put("project", project);
beanProperties.put("settings", settings);
Properties mavenProperties = new Properties(beanProperties);
Properties projectProperties = project.getProperties();
for (Enumeration<?> propertyNames = projectProperties.propertyNames(); propertyNames.hasMoreElements();) {
Object key = propertyNames.nextElement();
mavenProperties.put(key, projectProperties.get(key));
}
try (Builder builder = new Builder(new Processor(mavenProperties, false))) {
all Maven properties and apart from that the settings fields and project fields (with prefix settings/project) can be used in bnd files processed by the bnd-maven-plugin. This should be clarified in the README.MD

bjhargrave added a commit to bjhargrave/bnd that referenced this issue Sep 26, 2022
Fixes bndtools#5375

Signed-off-by: BJ Hargrave <bj@hargrave.dev>
@bjhargrave bjhargrave self-assigned this Sep 26, 2022
@bjhargrave bjhargrave added this to the 6.4 milestone Sep 26, 2022
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