(Quick Reference) !h1. integrate-with

Purpose

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

Examples

Propósito

El comando integrate-with permite inegrarse con un variedad de IDEs y sistemas de construcción

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

Description

Usage:

Descripción

Uso:

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 .project and .classpath files for use with Eclipse or SpringSource Tool Suite (STS).

The command is extensible. For example to provide a --myide command, create an _Events.groovy file and handle the IntegrateWithStart event:

El comando integrate-with integrará Grails con diferentes IDEs y contruir sistemas basados en los argumentos proporcionados. Por ejemplo el comando --eclipse genera los ficheros .project y .classpath para usar con Eclipse o SpringSource Tool Suite (STS).

El comando es extensible. Por ejemplo para proporcionar un comando --myide, crear un fichero _Events.groovy y manejar el evento IntegrateWithStart:

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

  • IntegrateWithStart - Se activa cuando el script se ejecuta por primera vez
  • IntegrateNAMEStart - Se activa cuando se inicia la integración de cada uno. (ej. IntegrateEclipseStart)
  • IntegrateNAMEEnd - Se activa cuando finaliza la integración de cada uno (ej. IntegrateIntellijEnd)
  • IntegrateWithEnd - Se activa cuando el script finaliza