openhab-docs/developers/ide/examples/vscode/tasks.json

192 lines
5.2 KiB
JSON

{
"version": "3.0.0",
"options": {
"env": {
"openhab_home": "c://openhab",
"openhab_runtime": "c://openhab/runtime",
"openhab_addons": "c://openhab/addons",
"openhab_logs": "C://openhab/userdata/logs",
"dist" : "org.openhab.binding.something-3.0.0-SNAPSHOT.jar"
}
},
"tasks": [
{
"label": "Start openHAB (Debug)",
"type": "shell",
"isBackground": true,
"command": "$openhab_home/start.sh debug",
"windows": {
"command": "& $env:openhab_home/start.bat debug"
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Stop openHAB",
"type": "shell",
"command": "$openhab_runtime/bin/stop",
"windows": {
"command": "& $env:openhab_runtime/bin/stop.bat"
},
"problemMatcher": []
},
{
"label": "mvn Compile (Release)",
"type": "shell",
"command": "mvn",
"args": [
"clean",
"install"
],
"dependsOn": [
"mvn Spotless (Fix codestyle)"
],
"problemMatcher": []
},
{
"label": "mvn Compile (Online)",
"type": "shell",
"command": "mvn",
"args": [
"clean",
"install",
"-DskipChecks"
],
"dependsOn": [
"mvn Spotless (Fix codestyle)"
],
"problemMatcher": []
},
{
"label": "mvn Compile (Offline)",
"type": "shell",
"command": "mvn",
"args": [
"-o",
"clean",
"install",
"-DskipChecks"
],
"dependsOn": [
"mvn Spotless (Fix codestyle)"
],
"problemMatcher": []
},
{
"label": "Copy Distribution to Addons",
"type": "shell",
"command": "cp",
"args": [
"${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",
"type": "shell",
"command": "tail",
"args": [
"-n",
"50",
"-F",
"$openhab_logs/events.log"
],
"windows": {
"command": "Get-Content",
"args": [
"-Last",
"50",
"-Path",
"$env:openhab_logs/events.log",
"-Wait"
]
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "Tail openhab.log",
"type": "shell",
"command": "tail",
"args": [
"-n",
"50",
"-F",
"$openhab_logs/openhab.log"
],
"windows": {
"command": "Get-Content",
"args": [
"-Last",
"50",
"-Path",
"$env:openhab_logs/openhab.log",
"-Wait"
]
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": []
},
{
"label": "mvn Spotless (Fix codestyle)",
"type": "shell",
"command": "mvn",
"args": [
"spotless:apply"
],
"problemMatcher": []
},
{
"label": "mvn update properties (Default)",
"type": "shell",
"command": "mvn",
"args": [
"i18n:generate-default-translations",
"-pl",
":$env:binding"
],
"problemMatcher": []
},
{
"label": "mvn update properties (Default) [full plug-in name]",
"type": "shell",
"command": "mvn",
"args": [
"mvn org.openhab.core.tools:i18n-maven-plugin:3.4.0:generate-default-translations",
"-pl",
":$env:binding"
],
"problemMatcher": []
}
]
}