groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "corneil.duplessis@gmail.com" <corneil.duples...@gmail.com>
Subject Re: Proper way to change location of the Grapes cache directory ?
Date Thu, 28 May 2015 15:58:40 GMT
It is probably simpler to leave grapeConfig.xml in
~/.groovy/grapeConfig.xml and then update the file with the 'global'
location.
That way you don't have to set grape.config for all occasions when
launching groovy.


[image: --]
Corneil du Plessis
[image: https://]about.me/corneil
<https://about.me/corneil?promo=email_sig>

On 28 May 2015 at 08:57, DECLOEDT Loic EVADERIS <Loic.DECLOEDT@cea.fr>
wrote:

>  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