Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3601

grails.project.work.dir needs a sensible default

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Component/s: grails-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      If the project working directory is not customised, it will end up being
      ${grails.work.dir}/projects/workspace, since "workspace" is usually the working
      directory in Hudson. This makes it difficult to build multiple Grails projects
      in one Hudson instance.

      The plugin should by default change grails.project.work.dir to be named after
      the project, which makes more sense.

      (Two workarounds for this problem: check out the source in a subdirectory of
      the workspace, or change the workspace directory under Advanced Project Options
      -> Use custom workspace.)

        Attachments

          Activity

          Hide
          jeffg2one jeffg2one added a comment -

          Relevant issue filed against Grails Core... http://jira.codehaus.org/browse/GRAILS-6232

          Show
          jeffg2one jeffg2one added a comment - Relevant issue filed against Grails Core... http://jira.codehaus.org/browse/GRAILS-6232
          Hide
          jeffg2one jeffg2one added a comment -

          I will leave this open for now, pending a decision about what we are going to do with respect to GRAILS-6232. For now, changing the workspace directory or explicitly assigning a value to grails.work.dir is probably the best option.

          Show
          jeffg2one jeffg2one added a comment - I will leave this open for now, pending a decision about what we are going to do with respect to GRAILS-6232. For now, changing the workspace directory or explicitly assigning a value to grails.work.dir is probably the best option.
          Hide
          jeffg2one jeffg2one added a comment -

          The plugin currently allows you to define a value for that property if you need to but I don't think the plugin should fill in a default value.

          Moving forward, new versions of Grails will no longer use the current working directory name in the default value of grails.work.dir (per http://jira.codehaus.org/browse/GRAILS-6232).

          Show
          jeffg2one jeffg2one added a comment - The plugin currently allows you to define a value for that property if you need to but I don't think the plugin should fill in a default value. Moving forward, new versions of Grails will no longer use the current working directory name in the default value of grails.work.dir (per http://jira.codehaus.org/browse/GRAILS-6232 ).
          Hide
          tomc Tom Crossland added a comment -

          See also JENKINS-20583

          Show
          tomc Tom Crossland added a comment - See also JENKINS-20583

            People

            • Assignee:
              jeffg2one jeffg2one
              Reporter:
              mbetter Marcus Better
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: