Grails Quick Tip: One-Click Application Start

Posted: December 15th, 2011 | Author: | Filed under: Groovy/Grails | No Comments »

In the search for the perfect, lightweight Grails IDE I’ve temporarily abandoned the feature-rich and bloated Eclipse variant SpringSource. One of SpringSource’s features that I like is the ability to associate a specific version of Grails with each project. Since my requirement is to run a specific application with a specific version of grails, I created this simple batch file to run ‘ApplicationX’ with Grails 1.3.7.

@echo off
SET GRAILS_HOME=C:\grails-1.3.7
SET PATH=%GRAILS_HOME%\bin;%PATH%
CD C:\ApplicationX
grails -Dgrails.env=local -Dgrails.gsp.enable.reload=true run-app
pause

Windows batch files FTW!



Leave a Reply