From 421af336585a5bdcb7275663cded6ab004f0370a Mon Sep 17 00:00:00 2001 From: Harrison Date: Wed, 22 Apr 2020 21:16:43 -0500 Subject: [PATCH] Changed test-server scripts and reconfigured tasks. VSCode task output and cleanup config changed. Added some more verbosity to scripts. --- .vscode/tasks.json | 20 ++++++++++++++++++-- test-server/load-latest-build.ps1 | 6 +++--- test-server/start-debug-server-process.ps1 | 3 +++ 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 62a5fb4..42faae2 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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 + } } ] } \ No newline at end of file diff --git a/test-server/load-latest-build.ps1 b/test-server/load-latest-build.ps1 index 0063ccb..685dfde 100644 --- a/test-server/load-latest-build.ps1 +++ b/test-server/load-latest-build.ps1 @@ -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" -copy-Item -Path "..\target\IslandSurvivalCraft-1.0.0.jar" -Destination "plugins\IslandSurvivalCraft-1.0.0.jar" \ No newline at end of file +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" diff --git a/test-server/start-debug-server-process.ps1 b/test-server/start-debug-server-process.ps1 index 65ecb9c..85f32d0 100644 --- a/test-server/start-debug-server-process.ps1 +++ b/test-server/start-debug-server-process.ps1 @@ -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" \ No newline at end of file