// build B+Tree indexes
Location location = new Location(outPath);
for ( String idxName : Constants.indexNames ) {
log.debug("Creating {} index...", idxName);
String indexFilename = location.absolute(idxName, "gz");
if ( new File(indexFilename).exists() ) {
new File(outPath, idxName + ".dat").delete() ;
new File(outPath, idxName + ".idn").delete() ;
CmdIndexBuild.main(location.getDirectoryPath(), idxName, indexFilename);
// To save some disk space