New project template that runs "griffon create-app" and automatically opens the newly created application in the IDE. The newly created application is based on the brand new Grails-based Groovy-Swing framework called Griffon
For future reference, here's notes on how to convert Grails support to Griffon support, which I will do once Grails support has stabilized:
- hg clone http://hg.netbeans.org/main nb_all
- cd nb_all
- Then search in the Groovy/Grails modules for "grails.bat". (Don't search for "grails", because every class has that in it somewhere.) Once you've found the "grails.bat" references, you'll have found the classes that define what a Grails application consists of. Simply change "grails.bat" to "griffon.bat" and then look for the Unix declarations, which are right above or below the Windows declarations and also change those from "grails" to "griffon".
- Simply remove the "web-app-dir" setting, which is part of the definition of what a Grails application is, though doing this may break things elsewhere, so need to investigate this. (Need to be able to create an absolutely minimal download of NetBeans IDE, i.e., one that is Java SE only, plus the Griffon cluster, unlike Grails, which is part of the "Java Web & EE" cluster.)
- Make sure to also change the classes that handle the execution of the Groovy scripts, which redefine the above settings.
- Check the file-level Grails scripts, also check that the project structure is created correctly in the Projects window.
- Also change the Options window, where the location of "Griffon home" should be set instead of "Grails home".
- Look in layer.xml and bundle.properties files for strings that say "Grails" and change those to "Griffon". Do the same in the HTML descriptor for the project template.
- Change the Grails icon with the Griffon icon. (Probably 16x16 as well as 32x32.)
- Add some Griffon samples, JavaHelp for the Griffon support, and a tutorial explaining how to use it in NetBeans IDE.
- Set the Griffon home (on Ubuntu anyway) in "etc/environment", not in ".bashrc" (don't know why, but otherwise NetBeans IDE doesn't pick up Griffon home).
- ant -Dcluster.config=groovy build-nozip
- Then start NetBeans from "nbbuild/netbeans/bin".
- Then all should be as described here.
Then maybe create a site on dev.java.net, called "nbgriffonsupport.dev.java.net", probably.