mirror of
https://github.com/ethauvin/rife2.git
synced 2025-05-01 19:08:12 -07:00
Tweak to command registration
This commit is contained in:
parent
27e87d802f
commit
e1d5546cca
1 changed files with 7 additions and 7 deletions
|
@ -162,7 +162,6 @@ public class BuildExecutor {
|
||||||
method.setAccessible(true);
|
method.setAccessible(true);
|
||||||
|
|
||||||
var name = method.getName();
|
var name = method.getName();
|
||||||
if (!build_commands.containsKey(name)) {
|
|
||||||
var annotation = method.getAnnotation(BuildCommand.class);
|
var annotation = method.getAnnotation(BuildCommand.class);
|
||||||
|
|
||||||
var annotation_name = annotation.value();
|
var annotation_name = annotation.value();
|
||||||
|
@ -170,6 +169,7 @@ public class BuildExecutor {
|
||||||
name = annotation_name;
|
name = annotation_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!build_commands.containsKey(name)) {
|
||||||
var build_help = annotation.help();
|
var build_help = annotation.help();
|
||||||
CommandHelp command_help = null;
|
CommandHelp command_help = null;
|
||||||
if (build_help != null && build_help != CommandHelp.class) {
|
if (build_help != null && build_help != CommandHelp.class) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue