public void execute(){
  final RTimer timer=new RTimer();
  if (DATA_MODE_FILES.equals(mode) && args.length > 0) {
    doFilesMode();
  }
 else   if (DATA_MODE_ARGS.equals(mode) && args.length > 0) {
    doArgsMode();
  }
 else   if (DATA_MODE_WEB.equals(mode) && args.length > 0) {
    doWebMode();
  }
 else   if (DATA_MODE_STDIN.equals(mode)) {
    doStdinMode();
  }
 else {
    usageShort();
    return;
  }
  if (commit)   commit();
  if (optimize)   optimize();
  displayTiming((long)timer.getTime());
}

public void execute ( ) { final RTimer timer = new RTimer ( ) ; if ( DATA_MODE_FILES . equals ( mode ) && args . length > 0 ) { doFilesMode ( ) ; } else if ( DATA_MODE_ARGS . equals ( mode ) && args . length > 0 ) { doArgsMode ( ) ; } else if ( DATA_MODE_WEB . equals ( mode ) && args . length > 0 ) { doWebMode ( ) ; } else if ( DATA_MODE_STDIN . equals ( mode ) ) { doStdinMode ( ) ; } else { usageShort ( ) ; return ; } if ( commit ) commit ( ) ; if ( optimize ) optimize ( ) ; displayTiming ( ( long ) timer . getTime ( ) ) ; }
after initialization , call execute to start the post job . this method delegates to the correct mode method .
