If your class is called hello, put it in
resources/crash/commands/hello/hello.java
The presence of a package instruction does not matter. You do not need to enter anything inside src, just use these internal resources.
@ Component not required.
This class compiles at runtime. Cm:
org.crsh.lang.impl.java.JavaCompiler#compileCommand
Therefore, any requirements for dependency injection must be considered accordingly with lazy initialization.
Ravindranath akila
source share