-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Merge addon info of all repos into one addons.xml file #1626
Conversation
Extracts the ZigBee and Z-Wave addon.xml files and merges them into the addons.xml file using Groovy. Signed-off-by: Wouter Born <[email protected]>
/** | ||
* Copyright (c) 2010-2024 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this license header needed, and if so, is there a configuration in this repository for automatically updating copyright year in license headers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it because we also have it on our other Groovy file.
There is no license-maven-plugin config currently but we can add it before 2025 when the header survives the pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created #1627 for this
Just tried it out, addons.xml now contains zwave an zway. It is in the distro zip and accepted by the addon finders. 👍 |
@wborn Bad news. Unfortunately there seem to be issues, at least when building on Windows..... Seems I have not seen this in the first tryout because I touched the new addons.xml and VS Code fixed it when saving.... We seem to have mixed line endings: (When I fix this, I seen to break the encoding in the description of nobohub binding, so I removed the UTF8 characters). |
Signed-off-by: Wouter Born <[email protected]>
Does it work better with the new commit? |
Signed-off-by: Wouter Born <[email protected]>
It seems to always print the XML using Unix line endings so I've updated the script for that. |
Signed-off-by: Wouter Born <[email protected]>
With the new commit it seems to work better on my Windows VM. |
Does not work for me - same output as before. This character is correct in ./distributions/openhab/target/addon-xml/addons.xml, but broken in ./distributions/openhab/target/assembly/runtime/etc/addons.xml. |
Signed-off-by: Wouter Born <[email protected]>
How does this BufferedWriter work for you? 🙂 |
Yeah, that did the trick! 🚀 👍 |
Great! 😅 If it works on Linux and Windows I cannot imagine it will not work macOS. 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Extracts the ZigBee and Z-Wave addon.xml files and merges them into the addons.xml file using Groovy.