Uploaded image for project: 'Grails'
  1. Grails
  2. GRAILS-8562

Configurable location of entire .grails directory

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0 final
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
      None
    • Environment:
      Mac OS X or Windows 7 with Grails 2.0.0

      Description

      It would be great if there was a way to move the entire .grails folder as opposed to just the .slcache directory because of the way some companies configure corporate laptops. This improvement proposal is for an environment variable that can be used to set the location for the entire .grails folder to anywhere besides the default (user's home directory). The environment variable could be called something like GRAILS_CACHE, GRAILS_CACHE_DIR, GRAILS_WORK or GRAILS_WORK_DIR. This is related to GRAILS-8059 (custom .slcache directory location) but extends it to the entire .grails directory.

        Issue Links

          Activity

          Hide
          Alexander Chernyakevich added a comment -

          In addition I can say that for Windows platform we have another one issue - if you start grails for project located on the drive D:\ then after starting you will see that Grails creates folder like D:\Users\tch\.grails\2.3.8\.slcache and keep related files inside. As far as I tried this problem appears for all 2.3.x versions. Maybe this exists for other as well.

          So having possibility to configure Grails caching folder really could not only simplify life of developers (avoid restriction to place everything to C:\ drive in user's folder, easier way to find and clean cache) but additionally fix problem of spreaded cache over drives.

          But maybe I'm wrong and I just need to create separate issue?

          Show
          Alexander Chernyakevich added a comment - In addition I can say that for Windows platform we have another one issue - if you start grails for project located on the drive D:\ then after starting you will see that Grails creates folder like D:\Users\tch\.grails\2.3.8\.slcache and keep related files inside. As far as I tried this problem appears for all 2.3.x versions. Maybe this exists for other as well. So having possibility to configure Grails caching folder really could not only simplify life of developers (avoid restriction to place everything to C:\ drive in user's folder, easier way to find and clean cache) but additionally fix problem of spreaded cache over drives. But maybe I'm wrong and I just need to create separate issue?
          Hide
          Jeff Scott Brown added a comment -

          Alexander,

          You can specify the location of that directory by setting the GRAILS_AGENT_CACHE_DIR environment variable. See http://grails.org/doc/latest/guide/commandLine.html#buildCustomising. However, if it is by default creating that path under your D: drive when your home directory is on the C: drive, I think that is a separate problem. If that is the case, please file a separate JIRA.

          Show
          Jeff Scott Brown added a comment - Alexander, You can specify the location of that directory by setting the GRAILS_AGENT_CACHE_DIR environment variable. See http://grails.org/doc/latest/guide/commandLine.html#buildCustomising . However, if it is by default creating that path under your D: drive when your home directory is on the C: drive, I think that is a separate problem. If that is the case, please file a separate JIRA.

            People

            • Assignee:
              Jeff Scott Brown
              Reporter:
              Bobby Warner
            • Votes:
              7 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Last Reviewed: