This cloned from grails-batch-launcher-plugin but upgraded to work with grails 2