(Quick Reference)

integrate-with

Purpose

The integrate-with command allows Grails to be integrated with a variety of IDEs and build systems.

Examples

grails integrate-with --eclipse --intellij --textmate --ant

Description

Usage:

grails integrate-with [ARGUMENTS]

The integrate-with command will integrate Grails with different IDEs and build systems based on the arguments provided. For example the --eclipse command will produce Eclipse project and classpath for use with SpringSource STS.

The command is however extensible. For example if you want to provide a --myide command you can do so by creating an _Events.groovy file and handling the IntegrateWithStart event:

eventIntegrateWithStart = {
	binding.integrateMyide = {
		// your code here
	}
}

Fired Events:

  • IntegrateWithStart - Fired when the script is first run
  • IntegrateNAMEStart - Fired when each integration starts (eg. IntegrateEclipseStart)
  • IntegrateNAMEEnd - Fired when each integration ends (eg. IntegrateIntellijEnd)
  • IntegrateWithEnd - Fired when the script finishes