private void compile(File file) { try { doCompile(file, dest); } catch (AvroRuntimeException e) { throw new BuildException(e); } catch (IOException e) { throw new BuildException(e); } } }
/** Run the compiler. */ public void execute() { if (src == null && filesets.size()==0) throw new BuildException("No file or fileset specified."); if (src != null) compile(src); Project myProject = getProject(); for (int i = 0; i < filesets.size(); i++) { FileSet fs = filesets.get(i); DirectoryScanner ds = fs.getDirectoryScanner(myProject); File dir = fs.getDir(myProject); String[] srcs = ds.getIncludedFiles(); for (int j = 0; j < srcs.length; j++) { compile(new File(dir, srcs[j])); } } }
/** Run the compiler. */ public void execute() { if (src == null && filesets.size()==0) throw new BuildException("No file or fileset specified."); if (src != null) compile(src); Project myProject = getProject(); for (int i = 0; i < filesets.size(); i++) { FileSet fs = filesets.get(i); DirectoryScanner ds = fs.getDirectoryScanner(myProject); File dir = fs.getDir(myProject); String[] srcs = ds.getIncludedFiles(); for (int j = 0; j < srcs.length; j++) { compile(new File(dir, srcs[j])); } } }
private void compile(File file) { try { doCompile(file, dest); } catch (AvroRuntimeException e) { throw new BuildException(e); } catch (IOException e) { throw new BuildException(e); } } }