Deleting worlds is now a separate task.
This commit is contained in:
parent
19552f1a2b
commit
44518270e1
16
.vscode/tasks.json
vendored
16
.vscode/tasks.json
vendored
@ -22,10 +22,18 @@
|
|||||||
"group": "build"
|
"group": "build"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dependsOn": ["package"],
|
"label": "delete server world",
|
||||||
"label": "load build to server",
|
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load_latest_build.ps1"],
|
"options": {"cwd": "${workspaceFolder}/test-server/"},
|
||||||
|
"args": ["-ExecutionPolicy", "Bypass", "-File", "./delete_worlds.ps1"],
|
||||||
|
"command": "powershell",
|
||||||
|
"problemMatcher": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"dependsOn": ["package"],
|
||||||
|
"label": "load build",
|
||||||
|
"type": "shell",
|
||||||
|
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load_build.ps1"],
|
||||||
"options": {"cwd": "${workspaceFolder}/test-server/"},
|
"options": {"cwd": "${workspaceFolder}/test-server/"},
|
||||||
"command": "powershell",
|
"command": "powershell",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
@ -39,7 +47,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dependsOn": ["load build to server"],
|
"dependsOn": ["load build"],
|
||||||
"label": "start test server",
|
"label": "start test server",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"runOptions": {"instanceLimit": 1},
|
"runOptions": {"instanceLimit": 1},
|
||||||
|
2
test-server/delete_worlds.ps1
Normal file
2
test-server/delete_worlds.ps1
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
write-Output "Deleting previous world if there was one..."
|
||||||
|
remove-Item -Recurse world* -Force -ErrorAction Ignore
|
Loading…
Reference in New Issue
Block a user