getLogger().debug("Finished assembling repository to: " + repositoryDirectory);
} catch (final RepositoryAssemblyException e) {
throw new ArchiveCreationException("Failed to assemble repository: " + e.getMessage(), e);
}
final AddDirectoryTask task = new AddDirectoryTask(repositoryDirectory);
final int dirMode = TypeConversionUtils.modeToInt(repository.getDirectoryMode(), getLogger());
if (dirMode != -1) {
task.setDirectoryMode(dirMode);
}
final int fileMode = TypeConversionUtils.modeToInt(repository.getFileMode(), getLogger());
if (fileMode != -1) {
task.setFileMode(fileMode);
}
task.setOutputDirectory(outputDirectory);
task.execute(archiver, configSource);
}
}