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"
|
||||
},
|
||||
{
|
||||
"dependsOn": ["package"],
|
||||
"label": "load build to server",
|
||||
"label": "delete server world",
|
||||
"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/"},
|
||||
"command": "powershell",
|
||||
"problemMatcher": [],
|
||||
@ -39,7 +47,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"dependsOn": ["load build to server"],
|
||||
"dependsOn": ["load build"],
|
||||
"label": "start test server",
|
||||
"type": "shell",
|
||||
"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