code: private boolean copyProjectFolder(String projectFolder, File buildGradleTempDirectory) {
          try {
              FileUtils.copyDirectory(new File(projectFolder), buildGradleTempDirectory);
          } catch (IOException e) {
              logger.error("Could not copy the folder {} to {} , the cause {}", projectFolder, buildGradleTempDirectory.getPath(), e.getMessage());
              return false;
          }
          logger.debug("copied folder {} to temp folder successfully", projectFolder);
          return true;
      }
docs: copy project to local temp directory