Subversion Repositories SmartDukaan

Rev

Rev 36197 | Rev 36248 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36197 Rev 36220
Line 1175... Line 1175...
1175
            if (args.containsOption("resendCNReport")) {
1175
            if (args.containsOption("resendCNReport")) {
1176
                System.out.println("Calling resendCNReport");
1176
                System.out.println("Calling resendCNReport");
1177
                YearMonth yearMonth = YearMonth.now().minusMonths(1);
1177
                YearMonth yearMonth = YearMonth.now().minusMonths(1);
1178
                scheduledTasks.resendCNReport(yearMonth);
1178
                scheduledTasks.resendCNReport(yearMonth);
1179
            }
1179
            }
-
 
1180
            if (args.containsOption("genDNs")) {
-
 
1181
                System.out.println("Calling genDNs");
-
 
1182
                String ymStr = args.getOptionValues("genDNs").isEmpty() ? null : args.getOptionValues("genDNs").get(0);
-
 
1183
                YearMonth yearMonth = ymStr != null ? YearMonth.parse(ymStr) : YearMonth.now().minusMonths(1);
-
 
1184
                scheduledTasks.genDNs(yearMonth);
-
 
1185
            }
1180
            System.exit(0);
1186
            System.exit(0);
1181
        }
1187
        }
1182
    }
1188
    }
1183
}
1189
}
1184
1190