Ejemplo n.º 1
0
 /** User parameters are not handled by default. You need to implement your own task to do this. */
 @Override
 protected void doRun(Map<String, String> params) throws PackageException {
   for (Command cmd : commands) {
     Command rollbackCmd = cmd.run(this, params);
     if (rollbackCmd != null) {
       if (rollbackCmd.isPostInstall()) {
         commandLog.add(rollbackCmd);
       } else {
         commandLog.addFirst(rollbackCmd);
       }
     }
   }
   // XXX: force a flush?
   flush();
 }