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
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/301743/viewspace-745381/
,如需转载,请注明出处,否则将追究法律责任。