mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user