Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Script for selecting and calling the correct Grails version when you have more than one version installed
branch: master

This branch is 15 commits behind deluan:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
grails

README.md

Prerequisites

  • All your Grails versions must be installed under the same base directory. Ex:

    /opt/grails-1.0.3
    /opt/grails-1.1.1
    /opt/grails-1.3.2
    
  • GRAILS_HOME environment variable must be set and point to your "default" Grails installation

  • This script was tested on Mac OS X (Snow Leopard), Linux (Ubuntu) and Windows (with cygwin)

Installation

Usage

Using the script is as transparent as possible:

  • If you invoke it from a project folder, it will detect the version used by the project and call the correct grails (if it is installed in your system)
  • If you invoke it from any other folder that does not contain a Grails project, it will call the "default" Grails installation
  • If you want to call a specific Grails version (i.e. when doing an upgrade) you can specify the version you want in the first parameter. Ex:

    $ grails 1.3.3 upgrade
    
Something went wrong with that request. Please try again.