public static void copyFolder(File srcFolder,File destFolder) throws CoreException, IOException {
  for (  File file : srcFolder.listFiles()) {
    if (file.isDirectory()) {
      copyFolder(file,new File(destFolder.getAbsolutePath() + File.separator + file.getName()));
    }
 else {
      ResourceUtils.copyFile(file,new File(destFolder.getAbsolutePath() + File.separator + file.getName()));
    }
  }
}

public static void copyFolder ( File srcFolder , File destFolder ) throws CoreException , IOException { for ( File file : srcFolder . listFiles ( ) ) { if ( file . isDirectory ( ) ) { copyFolder ( file , new File ( destFolder . getAbsolutePath ( ) + File . separator + file . getName ( ) ) ) ; } else { ResourceUtils . copyFile ( file , new File ( destFolder . getAbsolutePath ( ) + File . separator + file . getName ( ) ) ) ; } } }
copies all the contents of srcfolder to destfolder .
