コード例 #1
0
 protected void prepareFreeGenRequestList() {
   final List<DfFreeGenRequest> requestList = getFreeGenProperties().getFreeGenRequestList();
   for (DfFreeGenRequest request : requestList) {
     if (_genTarget != null && !_genTarget.equalsIgnoreCase(request.getRequestName())) {
       continue;
     }
     _freeGenRequestList.add(request);
   }
 }
コード例 #2
0
 // ===================================================================================
 //                                                                  Prepare Generation
 //                                                                  ==================
 @Override
 public Context initControlContext() throws Exception {
   _log.info("");
   _log.info("...Preparing generation of free generate");
   final StringBuilder sb = new StringBuilder();
   for (DfFreeGenRequest request : _freeGenRequestList) {
     sb.append(ln()).append("[").append(request.getRequestName()).append("]");
     sb.append(ln()).append(" resource : ").append(request.getResource());
     sb.append(ln()).append(" output   : ").append(request.getOutput());
     final String tableMapExp = Srl.cut(request.getTableMap().toString(), 3000, "...");
     sb.append(ln()).append(" tableMap : ").append(tableMapExp); // possible too big
   }
   _log.info(sb.toString());
   return createVelocityContext();
 }