I am happy to finally push the change to groovy compiler so it allows users to mix and match the groovy source with multiple extensions of their choice – http://tinyurl.com/376f6mj.
For example, Groovy++ has *.gpp and *.grunit files. You may want to have *.g or *.gscript, or *.gdsl or *.gspec, or whatever else – and have a mix of any number of them.
The feature is currently available in 1.7.5 and 1.8.0-beta-2 snapshots, which are available from here –
- http://snapshots.repository.codehaus.org/org/codehaus/groovy/groovy-all/1.7.5-SNAPSHOT/.
- http://snapshots.repository.codehaus.org/org/codehaus/groovy/groovy-all/1.8.0-beta-2-SNAPSHOT/
All that needs to be done to use this feature is to have your extensions listed down in the file META-INF/services/org.codehaus.groovy.source.Extensions and make it available on the classpath and the groovy compiler will do the rest.
Here is a sample of how the file may look like:
# Format: one extension on each line without the leading “*.”
gpp
gscript
gdsl
Feedback welcome.