// args should be an List of paths to scan (e.g. from the command line) if (args.size() == 0) { throw new IllegalStateException("you must provide a path to scan"); } def counter = new CodeCounter(args) println new XmlRenderer(counter).render() println new TextRenderer(counter).render()