Changed test-server scripts and reconfigured tasks.

VSCode task output and cleanup config changed.

Added some more verbosity to scripts.
This commit is contained in:
Harrison Deng 2020-04-22 21:16:43 -05:00
parent 7d07332ef5
commit 421af33658
3 changed files with 24 additions and 5 deletions

20
.vscode/tasks.json vendored
View File

@ -28,7 +28,15 @@
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load-latest-build.ps1"],
"options": {"cwd": "${workspaceFolder}/test-server/"},
"command": "powershell",
"problemMatcher": []
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true
}
},
{
"dependsOn": ["update test server"],
@ -45,7 +53,7 @@
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"showReuseMessage": false,
"clear": false
}
},
@ -57,6 +65,14 @@
"command": "powershell",
"problemMatcher": [],
"group": "test",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
]
}

View File

@ -1,4 +1,4 @@
write-Output "Attempting to delete previous world..."
write-Output "Deleting previous world if there was one..."
remove-Item -Recurse world -Force -ErrorAction Ignore
write-Output "Attempting to copy plugin jar to plugins folder"
write-Output "Attempting to copy plugin jar to plugins folder..."
copy-Item -Path "..\target\IslandSurvivalCraft-1.0.0.jar" -Destination "plugins\IslandSurvivalCraft-1.0.0.jar"

View File

@ -1,3 +1,6 @@
write-Output "Attempting to start Paper test server."
$SID = Start-Process java -ArgumentList "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=25566", "-Xms512M", "-Xmx1G", "-jar", "paper-195.jar", "nogui" -PassThru
$SID = $SID.Id
write-Output "Process started. PID is: $SID"
$SID | Out-File -FilePath "pid.temp"