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:
- I have a grails 2.0.0 app that has class with certain static methods
- I would like to test some of the functionality from grails shell, so I go ahead and launch it from the grails project folder as
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.
- Then I run the method, but it's seems that the method is the same, because it gives me same error even though I'm sure I've saved the groovy file.
- So, I have to
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...