同一环境下运行多个版本的Grails

Typically you have your grails installed into some directory, created environment variable GRAILS_HOME and you are ready to go.

But what if you have few projects with different grails versions? You can have different reasons for that, but nevertheless you need it.

Here is short tip how this process can be simplified, example for linux (Ubuntu).

Usually I install all applications to /usr/local/. Lets try to work with two grails versions 2.0.0 and 2.1.1(latest for this period)

So after unpacking we have

CODE:

/usr/local/grails-2.0.0
/usr/local/grails-2.1.1Lets create link to any version of grails

CODE:

ln-s/usr/local/grails-2.1.1 grails
请使用浏览器的分享功能分享到微信等