protected void writeBusinessArchiveToFolder(final BusinessArchive businessArchive, final File folderPath, List<BusinessArchiveContribution> contributions) throws IOException { if (folderPath.exists()) { if (!folderPath.isDirectory()) { throw new IOException("unable to create Business archive on a file " + folderPath); } } else { folderPath.mkdirs(); } for (final BusinessArchiveContribution contribution : contributions) { contribution.saveToBarFolder(businessArchive, folderPath); } }
protected void writeBusinessArchiveToFolder(final BusinessArchive businessArchive, final File folderPath, List<BusinessArchiveContribution> contributions) throws IOException { if (folderPath.exists()) { if (!folderPath.isDirectory()) { throw new IOException("unable to create Business archive on a file " + folderPath); } } else { folderPath.mkdirs(); } for (final BusinessArchiveContribution contribution : contributions) { contribution.saveToBarFolder(businessArchive, folderPath); } }