(Quick Reference)

init

Purpose

The init command initialises the appropriate directory structure for a Grails application and set some common variables that can be used by plug-ins and other scripts. It is typically used as an include.

Examples

Command line:

grails init

As an include:

includeTargets << new File ( "${grailsHome}/scripts/Init.groovy" )

or

includeTargets << grailsScript("_GrailsInit")