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:
parent
7d07332ef5
commit
421af33658
20
.vscode/tasks.json
vendored
20
.vscode/tasks.json
vendored
@ -28,7 +28,15 @@
|
|||||||
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load-latest-build.ps1"],
|
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load-latest-build.ps1"],
|
||||||
"options": {"cwd": "${workspaceFolder}/test-server/"},
|
"options": {"cwd": "${workspaceFolder}/test-server/"},
|
||||||
"command": "powershell",
|
"command": "powershell",
|
||||||
"problemMatcher": []
|
"problemMatcher": [],
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "silent",
|
||||||
|
"focus": false,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": false,
|
||||||
|
"clear": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"dependsOn": ["update test server"],
|
"dependsOn": ["update test server"],
|
||||||
@ -45,7 +53,7 @@
|
|||||||
"reveal": "silent",
|
"reveal": "silent",
|
||||||
"focus": false,
|
"focus": false,
|
||||||
"panel": "shared",
|
"panel": "shared",
|
||||||
"showReuseMessage": true,
|
"showReuseMessage": false,
|
||||||
"clear": false
|
"clear": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -57,6 +65,14 @@
|
|||||||
"command": "powershell",
|
"command": "powershell",
|
||||||
"problemMatcher": [],
|
"problemMatcher": [],
|
||||||
"group": "test",
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "silent",
|
||||||
|
"focus": false,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": true,
|
||||||
|
"clear": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -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
|
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"
|
copy-Item -Path "..\target\IslandSurvivalCraft-1.0.0.jar" -Destination "plugins\IslandSurvivalCraft-1.0.0.jar"
|
@ -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 = 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
|
$SID = $SID.Id
|
||||||
|
write-Output "Process started. PID is: $SID"
|
||||||
|
|
||||||
$SID | Out-File -FilePath "pid.temp"
|
$SID | Out-File -FilePath "pid.temp"
|
Loading…
Reference in New Issue
Block a user