Grails
  1. Grails
  2. GRAILS-8781

create-* scripts fail when trying to create unit tests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7 x64

      Description

      See the discussion here: http://grails.1312388.n4.nabble.com/Grails-2-0-1-create-service-command-results-in-error-tp4391153p4391702.html

      Here's the error:

      | Loading Grails 2.0.1
      | Configuring classpath
      | Configuring classpath.
      | Environment set to development
      | Environment set to development.
      | Environment set to development..
      | Environment set to development...
      | Environment set to development....
      | Environment set to development.....
      | Created file grails-app/services/com/mycompany/mypackage/MyClassService.groovy
      | Error Error executing script CreateService: java.io.FileNotFoundException: /Users/deandelponte/grails/grails-2.0.1/grails-resources/src/grails/templates/artifacts/UnitTest.groovy (No such file or directory) (Use --stacktrace to see the full trace)
      

      Notice the grails-resources directory in there, if you remove that then the directory path is valid. I'm on Windows and running into this issue, but the first person to report it looks like they were on Mac/Linux of some kind.

        Activity

          People

          • Assignee:
            Jeff Scott Brown
            Reporter:
            Brian Saville
          • Votes:
            9 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development