How do you manage developing with multiple versions of Grails using Windows?

前端 未结 10 2406
天涯浪人
天涯浪人 2021-01-04 02:13

We\'ve been using Grails for a little while now and have been through a few Grails versions now. We don\'t always want to migrate our \'older\' apps immediately but often us

10条回答
  •  礼貌的吻别
    2021-01-04 03:00

    The thing I would change about these answers is the PATH handling. Each time you run the script and change versions, you will extend your path one more node. It works, but messy. Try creating a $path2 with no reference to your JAVA_HOME or GRAILS_HOME and the path become path2+grails+java. Example: set PATH="%PATH2%;F:\softwares\grails-2.3.1;path2java7.

    The only reason I add the Java7 reference is that I need Java 6 for my older grails app and Java 7 for newer grails.

提交回复
热议问题