You can write a simple generic launcher in the following way: public class Launcher{ public static void main(String[] args){ if (args.length>0) { try { Command ...
For most Groovy scripts I use, I simply run the script from its Groovy source code as-is and allow the compilation to take place implicitly. However, it can be helpful at times to use groovyc to ...