![]() Open VSCode and then open the folder of the bundle. Should produce a jar file in the 'target' directory of the bundle(example: ?SE%/openhab-addons/bundles//target/-3.1.0-SNAPSHOT.jar).mvn clean install -DskipChecks in the console to build the bundle.Open console to the bundle location (example: ?SE%/openhab-addons/bundles/).These steps will show how to setup the Russound bundle but are generic to any bundle in the system.Įnsure the bundle builds correctly (natively with Maven) The following steps will show you how to setup a specific bundle for development with VSCode. vscode/settings.json file in the bundle (similar to tasks.json/ launch.json below).ĭownload settings.json (opens new window) for the recommended settings (or simply wish to copy the URLs in the above image). ![]() You can also define them local to a specific bundle by putting those lines in the. If you want to setup openHAB code formatting guidelines, add the following to the VSCode settings:Įither globally define the formatting options via Files->Preferences->Settings->Extensions->Java configuration (or in the global settings.json). vscode/settings.json file in the bundle (similar to tasks.json/ launch.json below). ![]() "": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"Įither globally define the options via the global settings.json. If not configured already, add the following to the VSCode settings: On Windows, VSCode should be configured to use powershell instead of the classic command line. ![]() ![]() Install Java Extension Pack for VSCode ( (opens new window))Ĭlone the addons ( (opens new window) or preferably your own fork) to ?SE%\openhab-addons The following steps will only need to be done once to setup both VSCode and your environment. This guide assumes you have a base development directory already defined (example: c:/users/me/development) and will reference that directory as ?SE%. Please note that the instructions show a Win10 system but should be similar for macOS/Linux. The following shows the steps for building a bundle using Visual Studio Code (VSCode).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |