gs.getOutStream().println("Dumping to "+dumpDir.getAbsolutePath());
DumpListener listener = new DumpListener( gs.getOutStream() );
DbDumpProcess dumpProcess = new DbDumpProcess(couchDb, dumpDir);
if( docIds.size() < 1 && false == selectSkeletonDocuments ) {
dumpProcess.setAllDocs(true);
} else {
for(String docId : docIds) {
if( docIdToFile.containsKey(docId) ){
dumpProcess.addDocId(docId, docIdToFile.get(docId));
} else {
dumpProcess.addDocId(docId);
}
}
}
dumpProcess.setListener(listener);
dumpProcess.dump();
}