}
@Deprecated
private Result prepareResult(final VFS vfs, final ResourceResolver resolver,
final Task task) throws IOException {
final Resources resources = new Resources();
for (final String out : task.getOut()) {
LOGGER.info("Preparing output file: {}", out);
final String ext = FilenameUtils.getExtension(out);
final VFile file = findLastModified(vfs.find("/"), ext);
if (file != null) {
final VFile target = vfs.find('/' + out);
LOGGER.info("Copy '{}' -> '{}'", file, target);
VFSUtils.copy(file, target);
resources.addResource(resolver.resolve(target.getPath()));
}
}
return new Result(resources);
}