Announcement Announcement Module
Collapse
No announcement yet.
grails: running create-script script from package/folder Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • grails: running create-script script from package/folder

    if i have a project called something like "grails-test",
    and i execute:
    -> grails create-script MyScript
    a script will be create in "scripts/grails/test/MyScript.groovy"
    when i execute:
    -> grails my-script
    i get:
    Script not found: MyScript
    if i execute:
    -> grails grails.test.MyScript
    i get:
    Script not found: Grails.test.MyScript
    if i move MyScript to the root of scripts, "grails my-script" works as expected.

    so, should all scripts by placed at the root "scripts" directory,
    or is there some trick to telling grails about the package/folder for this...?

    if the former, it might be better if create-script doesn't place the scripts in the default package/folder structure....
Working...
X