antCopyTask.setOverwrite(overwrite);
  public static void copyFiles(File fromDir, File toDir)  {    Copy antCopyTask = new Copy();    antCopyTask.setProject(new Project());    antCopyTask.setTodir(toDir);    FileSet fromDirFS = new FileSet();    fromDirFS.setDir(fromDir);    antCopyTask.addFileset(fromDirFS);    antCopyTask.execute();      }