Grails Goodness: Compiling GSP from the Command-Line
Join the DZone community and get the full member experience.
Join For FreeNormally Groovy Server Pages (GSP) are compiled to class files when we create a WAR file of our application. If we want to compile the GSP without creating a WAR file we use the command-line argument ---gsp
. Grails will compile the source code of our application and also the Groovy Server Pages. This way we can detect for examples faulty import statements in the GSP source code.
$ grails compile ---gsp ... | Compiling 12 GSP files for package [sampleGrails] ...
Code written with Grails 2.2.2.
Published at DZone with permission of Hubert Klein Ikkink, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Trending
-
How to Submit a Post to DZone
-
DZone's Article Submission Guidelines
-
Avoiding Pitfalls With Java Optional: Common Mistakes and How To Fix Them [Video]
-
Microservices With Apache Camel and Quarkus
Comments