groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DECLOEDT Loic EVADERIS <Loic.DECLO...@cea.fr>
Subject RE: Proper way to change location of the Grapes cache directory ?
Date Thu, 28 May 2015 06:57:17 GMT
Hi Eric,
Sorry for the late response, I am not looking at the list every.
You can refer to this page for details:
http://stackoverflow.com/questions/16577641/setting-location-of-grape-configuration-file
I personally solved this setting the environment variable JAVA_OPTS  to “-Dgrape.config=<path-to-common-file>”.
Hope this helps anyway.

Regards,
Loïc

De : Erick Nelson [mailto:ericksn@gmail.com]
Envoyé : mardi 19 mai 2015 22:50
À : users@groovy.incubator.apache.org
Objet : Proper way to change location of the Grapes cache directory ?

Problem...
I wanted to to move the groovy grapes cache directory
   from ~/.groovy/grapes
   to /opt/apps/.groovy/grapes
so that all user accounts would share the same jars.

Here are the steps I took. So far this seems to work.

  1) From the groovy-all jar, copy /groovy/grape/defaultGrapeConfig.xml to /opt/apps/.groovy/grapeConfig.xml

  2) in this file change these two lines...

        <ivy pattern="${user.home}/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
        <artifact pattern="${user.home}/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"/>

      to these...

        <ivy pattern="/opt/apps/.groovy/grapes/[organisation]/[module]/ivy-[revision].xml"/>
        <artifact pattern="/opt/apps/.groovy/grapes/[organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]"/>

  3) in groovy/bin/startGroovy
     add -Dgrape.root=/opt/apps/.groovy

Is this the correct way to do this?
Is there any downside to moving the grape cache?
Mime
View raw message