Minor change to gitignore and added workspace metadata.

This commit is contained in:
Harrison Deng 2020-04-24 16:01:35 -05:00
parent 8de4bff392
commit 77453fe177
4 changed files with 110 additions and 1 deletions

1
.gitignore vendored
View File

@ -123,7 +123,6 @@ buildNumber.properties
# End of https://www.gitignore.io/api/java,maven,eclipse,visualstudiocode
#Additional
**/*.code-workspace
local_tools
#Test server stuff

24
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch) - Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Debug With MC Server",
"request": "attach",
"hostName": "localhost",
"port": 25566,
"sourcePaths": ["src/main/java"],
"preLaunchTask": "start test server",
"postDebugTask": "stop test server"
}
]
}

78
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,78 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "verify",
"type": "shell",
"command": "mvn -B verify",
"group": "build"
},
{
"label": "test",
"type": "shell",
"command": "mvn -B test",
"group": "test"
},
{
"label": "package",
"type": "shell",
"command": "mvn package",
"group": "build"
},
{
"dependsOn": ["package"],
"label": "update test server",
"type": "shell",
"args": ["-ExecutionPolicy", "Bypass", "-File", "./load_latest_build.ps1"],
"options": {"cwd": "${workspaceFolder}/test-server/"},
"command": "powershell",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
"dependsOn": ["update test server"],
"label": "start test server",
"type": "shell",
"runOptions": {"instanceLimit": 1},
"args": ["-ExecutionPolicy", "Bypass", "-File", "./start_process.ps1"],
"options": {"cwd": "${workspaceFolder}/test-server/"},
"command": "powershell",
"problemMatcher": [],
"group": "test",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
},
{
"label": "stop test server",
"type": "shell",
"args": ["-ExecutionPolicy", "Bypass", "-File", "./end_process.ps1"],
"options": {"cwd": "${workspaceFolder}/test-server/"},
"command": "powershell",
"problemMatcher": [],
"group": "test",
"presentation": {
"echo": true,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
}
}
]
}

View File

@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}