I'm curious about the grails clean
command. Once I imported a wrong package into a domain class, It was java.util.regex
. I used it to do a regex replace command, but it turns out that everything was unchanged so that I supposed my regex was wrong. But I left it there for future refinement.
The web-app in my localhost functioned normally but then other programmers told me that they got compiling errors when they tried to compile my code. I shutdown grails and then start it again, but it still ran properly. Only after runnning grails clean
the compiling error appeared.
So it seems the application just ignored my changes in the first place. In the documentation, they say:
In case your Grails application has been screwed and comes up with mysterious error messages try:
grails clean
I'm a bit confused about this "mysterious" thing. So what does grails clean
actually do? What kinds of resources will not get compiled again, unless grails clean
is called?