String harvesterClass = config.getClassName();
if (harvesterClass != null) {
try {
LogManager.getInstance().logMessage(
LogMessage.WORTHLESS_CHATTER, "Harvesting files");
Harvester harvester = (Harvester) Class.forName(harvesterClass)
.newInstance();
// go to it...
LogManager.getInstance().logMessage(
LogMessage.WORTHLESS_CHATTER,
"Using :" + harvester.getClass().getName());
harvester.harvest(config, source, props,
new HarvestProgressListener());
LogManager.getInstance().logMessage(
LogMessage.WORTHLESS_CHATTER, "Harvesting complete");
} catch (Exception ex) {
LogMessage msg = new LogMessage(LogMessage.ERROR, ex, ex