Updated tasks.json to fix linux/osx commands (#1008)
Fixed image that had some personal information in it Added code formatting settings Fixed breaks on images Signed-off-by: Tim Roberts <troberts@bigfoot.com>pull/1009/head
parent
43f1029c34
commit
0dbe1d9143
|
@ -14,7 +14,7 @@
|
|||
"label": "Start openHAB (Debug)",
|
||||
"type": "shell",
|
||||
"isBackground": true,
|
||||
"command": "$env:openhab_home/start.sh",
|
||||
"command": "$openhab_home/start.sh",
|
||||
"windows": {
|
||||
"command": "& $env:openhab_home/start.bat debug"
|
||||
},
|
||||
|
@ -27,7 +27,7 @@
|
|||
{
|
||||
"label": "Stop openHAB",
|
||||
"type": "shell",
|
||||
"command": "$env:openhab_runtime/bin/stop.sh",
|
||||
"command": "$openhab_runtime/bin/stop",
|
||||
"windows": {
|
||||
"command": "& $env:openhab_runtime/bin/stop.bat"
|
||||
},
|
||||
|
@ -40,7 +40,8 @@
|
|||
"args": [
|
||||
"clean",
|
||||
"install"
|
||||
]
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "mvn Compile (Online)",
|
||||
|
@ -50,7 +51,8 @@
|
|||
"clean",
|
||||
"install",
|
||||
"-DskipChecks"
|
||||
]
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "mvn Compile (Offline)",
|
||||
|
@ -61,28 +63,35 @@
|
|||
"clean",
|
||||
"install",
|
||||
"-DskipChecks"
|
||||
]
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Copy Distribution to Addons",
|
||||
"type": "shell",
|
||||
"command": "cp",
|
||||
"windows": {
|
||||
"command": "copy"
|
||||
},
|
||||
"args": [
|
||||
"${workspaceFolder}/target/$env:dist",
|
||||
"$env:openhab_addons"
|
||||
"${workspaceFolder}/target/$dist",
|
||||
"$openhab_addons"
|
||||
],
|
||||
"windows": {
|
||||
"command": "copy",
|
||||
"args": [
|
||||
"${workspaceFolder}/target/$env:dist",
|
||||
"$env:openhab_addons"
|
||||
],
|
||||
},
|
||||
"dependsOn": [
|
||||
"mvn Compile (Offline)"
|
||||
]
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"dependsOn": [
|
||||
"Copy Distribution to Addons"
|
||||
]
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Tail events.log",
|
||||
|
@ -92,7 +101,7 @@
|
|||
"-n",
|
||||
"50",
|
||||
"-f",
|
||||
"$env:openhab_logs/events.log"
|
||||
"$openhab_logs/events.log"
|
||||
],
|
||||
"windows": {
|
||||
"command": "Get-Content",
|
||||
|
@ -118,7 +127,7 @@
|
|||
"-n",
|
||||
"50",
|
||||
"-f",
|
||||
"$env:openhab_logs/openhab.log"
|
||||
"$openhab_logs/openhab.log"
|
||||
],
|
||||
"windows": {
|
||||
"command": "Get-Content",
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 6.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.0 KiB |
|
@ -15,6 +15,11 @@ The following steps will only need to be done once to setup both VSCode and your
|
|||
|
||||
2. Clone the addons (https://github.com/openhab/openhab2-addons.git or preferably your own fork) to %BASE%\openhab2-addons
|
||||
|
||||
3. If you want to setup openHAB code formatting guidelines, add the following to the VSCode settings:
|
||||
|
||||

|
||||
|
||||
Either globally define the formatting options via ```Files->Preferences->Settings->Extendions->Java configuration``` (or in the global ```settings.json```). You can also define them local to a specific bundle by putting those lines in the ```.vscode/settings.json``` file in the bundle (similar to ```tasks.json```/```launch.json``` below).
|
||||
|
||||
## Steps for each Bundle
|
||||
|
||||
|
@ -27,15 +32,18 @@ The following steps will show you how to setup a specific bundle for development
|
|||
|
||||
2. Open VSCode and then open the folder of the bundle. From VSCode - use `File->Open Folder->choose bundle directory` (example: `%BASE%\openhab2-addons\bundles\org.openhab.binding.russound`)
|
||||
|
||||
3. Create a ".vscode" directory under the bundle (example: `%BASE%\openhab2-addons\bundles\org.openhab.binding.russound\.vscode`)
|
||||
3. Create a ".vscode" directory under the bundle (example: `%BASE%\openhab2-addons\bundles\org.openhab.binding.russound\.vscode`)
|
||||
|
||||

|
||||
|
||||
4. Download [tasks.json](https://raw.githubusercontent.com/openhab/openhab-docs/master/developers/ide/examples/vscode/tasks.json) to the .vscode directory (example: `%BASE%\openhab2-addons\bundles\org.openhab.binding.russound\.vscode\tasks.json`)
|
||||
|
||||

|
||||
|
||||
5. Edit tasks.json and ...
|
||||
|
||||

|
||||
|
||||
1. Set `openhab_*` to the directories for your openHAB installation
|
||||
2. Set `dist` to the name of the JAR file maven is producing in the target directory
|
||||
3. Save and close tasks.json
|
||||
|
@ -52,6 +60,7 @@ The following steps will show you how to setup a specific bundle for development
|
|||
9. Edit launch.json and ...
|
||||
|
||||

|
||||
|
||||
1. Set the `port` to xxxx (from step 7). This can be skipped if xxxx was 5005 from step 7.
|
||||
2. Set the `hostName` to the hostname running openHAB. This can be skipped if running locally (localhost)
|
||||
3. Save and close launch.json
|
||||
|
|
Loading…
Reference in New Issue