I'm new to grails and came across an issue of grails shell not recompiling my classes even though displaying a message about it. Here is what I'm doing:
grails
shell
I'm calling a static method of the class to perform some work as follows:
import com.mypackage.*
MyClass.doWork()
If I'm seeing some unexpected behavior or runtime error I'm modifying the source code accordingly and grails shell shows it actually is seeing the change: |Compiling 2 source files.
exit
the shell and launch it again. Then grails picks up the changes.What I'm doing wrong? It seems to be rather weird expected behavior...
Only run-app
enables reloading by default. Run grails -reloading shell
to reload changed files. I'd use the console though - it's way more user-friendly: grails -reloading console
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With