Sun GlassFish Enterprise Server v3 Prelude Developer's Guide
  Buscar sólo este libro
Descargar este libro en PDF (1199 KB)

Installing Grails

To develop and deploy Grails applications on the Enterprise Server, first install the Grails plug-in module.

ProcedimientoInstalling the Grails Plug-in Module

  1. Install the Grails add-on component from the Update Tool.

    For information about the Update Tool, see the Sun GlassFish Enterprise Server v3 Prelude Installation Guide.

  2. Create a GRAILS_HOME environment variable that points to the Grails directory, as-install/grails.

  3. Add the as-install/grails/bin directory to the PATH environment variable.


Example 7–1 Setting UNIX Environment Variables

On Solaris, Linux, and other operating systems related to UNIX, use the following commands for steps 2 and 3:


set GRAILS_HOME=~/glassfish/grails
export GRAILS_HOME
cd $GRAILS_HOME
set PATH=$GRAILS_HOME/bin:$PATH
export PATH
chmod a+x $GRAILS_HOME/bin/*


Example 7–2 Setting Windows Environment Variables

On the Windows operating system, use the following commands for steps 2 and 3:


set GRAILS_HOME=C:\GlassFish\grails
set PATH=%GRAILS_HOME%\bin;%PATH%