Esempio n. 1
0
 /**
  * Copies files from jobs/ to data/ folder in order to perform local work.
  *
  * @throws IOException
  */
 private void copyFiles() throws IOException {
   //        PathManager workerPathManager = PathManager.worker(jobPathManager.getProjectName());
   FileUtils.copyDirectory(
       new File(jobPathManager.taskResourcesDir()),
       new File(workerPathManager.taskResourcesDir()));
   FileUtils.copyDirectory(
       new File(jobPathManager.taskCodeDir()), new File(workerPathManager.taskCodeDir()));
 }