目的 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 --git
詳細 Description
使用方法: Usage:
grails integrate-with [ARGUMENTS]
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:eventIntegrateWithStart = {
binding.integrateMyide = {
// your code here
}
}Fired Events:
IntegrateWithStart- Fired when the script is first runIntegrateNAMEStart- Fired when each integration starts (eg. IntegrateEclipseStart)IntegrateNAMEEnd- Fired when each integration ends (eg. IntegrateIntellijEnd)IntegrateWithEnd- Fired when the script finishes

