throw new IllegalArgumentException("Can only make suppliers out of directories and zips right now!");
}
private void applyRangeMap(InputSupplier inSup, OutputSupplier outSup, FileCollection srg, FileCollection exc, File rangeMap, File rangeLog) throws IOException
{
RangeApplier app = new RangeApplier().readSrg(srg.getFiles());
final PrintStream debug = new PrintStream(Constants.createLogger(getLogger(), LogLevel.DEBUG));
final PrintStream stream = new PrintStream(rangeLog)
{
@Override
public void println(String line)
{
debug.println(line);
super.println(line);
}
};
app.setOutLogger(stream);
if (!exc.isEmpty())
{
app.readParamMap(exc);
}
// for debugging.
app.dumpRenameMap();
app.remapSources(inSup, outSup, rangeMap, false);
}