Wrap java programs and groovy scripts into a shell script/batch file