Welcome to a new series of posts regarding Tips & Tricks about Griffon.
The Griffon team decided to leave a late San Valentin present in the form of Griffon 0.9.5-rc1. This particular release includes plenty of updates to the build system and the command line tools. And here comes the first tip, which is enabled in the 0.9.5.x series: how can you tell which version of Griffon you're currently running? Moreover, how can you tell which Groovy version it relies upon?
The answer lies in using the --version (or -v) flag with the griffon command, and no arguments. For example, running the griffon command in my current setup with this flag turned on yields the following output
For plugin authors, this information is available at buildtime only as static properties found in the class org.codehaus.griffon.cli.GriffonEnvironment.
Keep on Groovying!
About Andres Almiray
Andres is a Java/Groovy developer and Java Champion, with more than 11 years of experience in software design and development. He has been involved in web and desktop application developments since the early days of Java. He has also been teacher of computer science courses in the most prestigious education institute in Mexico. His current interests include Groovy and Swing. He is a true believer of open source and has participated in popular projects like Groovy, Griffon, JMatter and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member and current project lead of the Griffon framework. He blogs periodically at http://jroller.com/aalmiray. You can find him on twitter too as @aalmiray. He likes to spend time with his beloved wife, Ixchel, when not hacking around.
More About Andres »