public static String convert(String filename, String input) throws Exception { return convert(filename, input, false, false); }
public static void processFiles(List<String> fileNames) throws Exception { Iterator i = fileNames.iterator(); while (i.hasNext()) { String filename = (String) i.next(); File f = new File(filename); String text = ResourceGroovyMethods.getText(f); System.out.println(convert(filename, text, true, true)); } }
private String convert(String input) throws Exception { return Java2GroovyProcessor.convert("Java2GroovyTest.java", input); }