[wpilib] Use reflection to load main class, remove main from templates (#8627)

#8626 needs to switch to using reflection to load the robot class. Do
that with this PR so it's separate.

Also, remove the duplicated main files from the template, and instead
fixup vscode to handle this properly.
This commit is contained in:
Thad House
2026-02-21 14:35:26 -08:00
committed by GitHub
parent 793b0a3187
commit 44441daad7
93 changed files with 167 additions and 2140 deletions

View File

@@ -82,7 +82,7 @@ task checkTemplates(type: Task) {
assert it.gradlebase != null
assert it.commandversion != null
if (it.gradlebase == 'java') {
assert it.mainclass != null
assert it.robotclass != null
}
}
}
@@ -101,7 +101,7 @@ task checkExamples(type: Task) {
assert it.gradlebase != null
assert it.commandversion != null
if (it.gradlebase == 'java') {
assert it.mainclass != null
assert it.robotclass != null
}
}
}
@@ -119,7 +119,7 @@ task checkSnippets(type: Task) {
assert it.foldername != null
assert it.gradlebase != null
if (it.gradlebase == 'java') {
assert it.mainclass != null
assert it.robotclass != null
}
}
}