@SuppressWarnings("rawtypes") public static void createProjectGuideline(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(GUIDELINE)) {
      String filename=FilenameUtils.getName(entry.getName());
      File guidelineDir=aRepository.getGuidelinesFile(aProject);
      FileUtils.forceMkdir(guidelineDir);
      FileUtils.copyInputStreamToFile(zip.getInputStream(entry),new File(guidelineDir,filename));
      LOG.info("Imported guideline [" + filename + "] for project ["+ aProject.getName()+ "] with id ["+ aProject.getId()+ "]");
    }
  }
}

@ SuppressWarnings ( "rawtypes" ) public static void createProjectGuideline ( 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 ( GUIDELINE ) ) { String filename = FilenameUtils . getName ( entry . getName ( ) ) ; File guidelineDir = aRepository . getGuidelinesFile ( aProject ) ; FileUtils . forceMkdir ( guidelineDir ) ; FileUtils . copyInputStreamToFile ( zip . getInputStream ( entry ) , new File ( guidelineDir , filename ) ) ; LOG . info ( "Imported guideline [" + filename + "] for project [" + aProject . getName ( ) + "] with id [" + aProject . getId ( ) + "]" ) ; } } }
copy guidelines from the exported project
