views:

773

answers:

2

I am experimenting with Groovy Griffon development and I am wondering what IDE to use.

I am trying to use NetBeans 6.5, and I found this post

http://blogs.sun.com/geertjan/entry/notes_on_converting_netbeans_grails

essentially it describes forking the NetBeans trunk and hacking the Grails support; I was hoping for something more lightweight.

Are there any simple tools to create eclipse, netbeans or pom.xml's from Griffin Apps?

Or is it best to use a simple text editor?

+1  A: 

Griffon apps have some rudimentry hooks already for IDE integration.

First, a .classpath and .project file are generated that mark the expected source and test directories for Eclipse. Both IntelliJ and NetBeans have importers for these eclipse files (and they work, I use them regularly).

Second, Griffon 0.1.1 adds more targets to the parallel build.xml so that more of the common scripts can be used as though they were ant tasks (run-app, compile, debug-app, etc.)

Third, there is some better IDE support in the works form some of the IDE vendors. As mentioned in the article you linked because Griffon is grails derived it is fairly easy to re-purpose existing Grails support. IntelliJ has the only specific tracked feature request I am aware of.

shemnon
Thanks for those pointers. I have managed to get my Griffon test app running inside NetBeans 6.5. I had to:* update the netbeans.conf file to include the GRIFFON_HOME environment variable declaration* Import the eclipse .project file into NB as you said* Create a netbeans library that references all the griffon/lib/*.jar and griffon/dist/*.jar files* Update the runtime configuration to read - Main Class: org.codehaus.griffon.cli.support.GriffonStarter - Arguments: and Runtime Options: taken from $GRIFFON_HOME/bin/startGriffon
Ben Hammond
Arguments: --main org.codehaus.griffon.cli.GriffonScriptRunner --conf "/usr/local/griffon/conf/groovy-starter.conf" --classpath ".:/home/ben/.griffon/0.1.1/projects/Accounts5/classes" run-app
Ben Hammond
VM Options: -verbose -Dprogram.name=griffon -Dgroovy.starter.conf="/usr/local/griffon/conf/groovy-starter.conf" -Dgriffon.home="/usr/local/griffon" -Dbase.dir="." -Dtools.jar="/usr/local/java/current_jdk/lib/tools.jar"
Ben Hammond
so you have to specifically pass the groovy runtime compilation directory as a --classpath argument to the Griffon starter class
Ben Hammond
How do you add bullet points to comments? I see its not like MediaWiki .
Ben Hammond
+4  A: 

There is a NetBeans Griffon plugin already available at http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=18664

aalmiray