System.exit(1);
}
// create minimal database configuration instead of trying to locate system.xml
String config = "<root-collection dbroot='" + path + "/' name='" + name + "'/>";
Database db = new Database();
boolean success = true;
try {
System.out.println("Processing database " + path);
System.out.println();
System.out.println("DI\tCollection name");
db.setConfig(new Configuration(DOMParser.toDocument(config)));
if (log.isInfoEnabled()) {
log.info("Rebuilding collections...");
}
success = processCollection(db, command);
} finally {
db.close();
System.out.println();
System.out.println("Legend:");
System.out.println(" D Data file");
System.out.println(" I Index files");