@SuppressWarnings("rawtypes") public static void createProjectLog(ZipFile zip,Project aProject,RepositoryService aRepository) throws IOException {
  for (Enumeration zipEnumerate=zip.entries(); zipEnumerate.hasMoreElements(); ) {
    ZipEntry entry=(ZipEntry)zipEnumerate.nextElement();
    String entryName=normalizeEntryName(entry);
    if (entryName.startsWith(LOG_DIR)) {
      FileUtils.copyInputStreamToFile(zip.getInputStream(entry),aRepository.getProjectLogFile(aProject));
      LOG.info("Imported log for project [" + aProject.getName() + "] with id ["+ aProject.getId()+ "]");
    }
  }
}

@ SuppressWarnings ( "rawtypes" ) public static void createProjectLog ( ZipFile zip , Project aProject , RepositoryService aRepository ) throws IOException { for ( Enumeration zipEnumerate = zip . entries ( ) ; zipEnumerate . hasMoreElements ( ) ; ) { ZipEntry entry = ( ZipEntry ) zipEnumerate . nextElement ( ) ; String entryName = normalizeEntryName ( entry ) ; if ( entryName . startsWith ( LOG_DIR ) ) { FileUtils . copyInputStreamToFile ( zip . getInputStream ( entry ) , aRepository . getProjectLogFile ( aProject ) ) ; LOG . info ( "Imported log for project [" + aProject . getName ( ) + "] with id [" + aProject . getId ( ) + "]" ) ; } } }
copy project log files from the exported project
