Preconditions.checkNotNull(outFile, "output file");
PackedDataSource source = new PackedDataSource(data.getName(), outFile,
data.getPreferenceDomain());
UpToDateChecker check = new UpToDateChecker();
check.addInput(data.lastModified());
check.addOutput(outFile);
if (check.isUpToDate()) {
logger.info("{} is up to date", outFile);
return source;
}
logger.info("packing {} to {}", data, outFile);