This is the output I get when I go through the Intellij IDEA 8.0.1 (macosx) wizard to create a new app (i.e. create-app):
[/opt/local/share/java/grails/bin/grails, create-app, grails_test_project]
/opt/local/share/java/grails/bin/grails: line 3: dirname: command not found
/opt/local/share/java/grails/bin/grails: line 4: /startGrails: No such file or directory
The directory is created but the normal grails files are not included. However, creating a Groovy/Grails app at the command line works just fine. i.e. grails create-app grailis_test_project. I'm using macports as well if that's of interest. I'm also failry new to the mac so I could be missing something simple. Any help would be greatly appreciated.
macbook-pro:~ ekinsella$ echo $JAVA_HOME
macbook-pro:~ ekinsella$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
macbook-pro:~ ekinsella$ echo $GROOVY_HOME
macbook-pro:~ ekinsella$ groovy -version
Groovy Version: 1.5.7 JVM: 1.5.0_16
macbook-pro:~ ekinsella$ echo $GRAILS_HOME
macbook-pro:~ ekinsella$ grails -version
Welcome to Grails 1.0.4 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /opt/local/share/java/grails
Base Directory: /Users/ekinsella
/Users/ekinsella does not appear to be part of a Grails application.
The following commands are supported outside of a project:
Run 'grails help' for a complete list of available scripts.
Anyone have any ideas on how to fix this?