I am new to grails and ran into a Grails shell problem not recompiling my classes, although displaying a message about it. That's what I'm doing:
- I have a grails 2.0.0 application that has a class with defined static methods.
- I would like to test some functions from the Grails shell, so I go and run it from the grails project folder as
grails shell
I call a static class method to do the following work as follows:
import com.mypackage.* MyClass.doWork()
If I see some unexpected behavior or a runtime error, I modify the source code accordingly, and the grails shell shows that the change is actually happening: |Compiling 2 source files.
- Then I run the method, but it seems that the method is the same because it gives me the same error, although I'm sure I saved the groovy file.
- So I need to
exit
shell and start it again. Then the grail picks up the changes.
What am I doing wrong? This seems to be a rather strange expected behavior ...
source share