// returns compiler output
static S compileWholeDir(File srcDir, L<File> libraries, File classesDir) {
  O j = getJavaX();
  //set(j, "javaTarget", "1.6");
  S compilerOutput = cast call(j, "compileJava", srcDir, libraries, mkdir(classesDir));
  ret compilerOutput;
}

static S compileWholeDir(File srcDir, File classesDir) {
  ret compileWholeDir(srcDir, emptylist(), classesDir);
}