LOGGER.warning("can't create " + file.getParent());
}
Files.deleteOnExit(file.getParentFile());
final Assignable finalArchive;
if (isTestable(archive, deployment.get())) {
finalArchive = archiveWithTestInfo(archive);
} else {
finalArchive = archive;
}
long size = -1;
if (file.exists()) {
size = file.length();
}
finalArchive.as(ZipExporter.class).exportTo(file, !configuration.isSingleDumpByArchiveName());
if (size > 0 && size != file.length()) {
LOGGER.warning("\nFile overwritten but size doesn't match: (now) "
+ file.length() + "/(before) " + size + " name="+ file.getName()
+ (configuration.isSingleDumpByArchiveName() ? " maybe set singleDumpByArchiveName to false" : "")
+ "\n");