Compilation of Groovy Code in Grails application -


when build war file grails application via grails war still contains groovy files.

after war-filed deployed on application server, when , how files compiled java bytecode?

the templates there dynamic scaffolding. example if have controller this

class personcontroller {    static scaffold = person } 

then it'll use template create controller @ runtime. isn't used in real apps - it's more demos , getting started - it's option. dynamically generated controller , gsps created based on templates , compiled in-memory.

the groovy-all jar have code can compile groovy source, that's because it's "-all" jar. because it's there doesn't mean it's used. in general compilation done when building war, including precompiling gsps. performance - want app fast possible in production.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -