()
| 349 | } |
| 350 | |
| 351 | private void doFilesMode() throws IOException { |
| 352 | currentDepth = 0; |
| 353 | |
| 354 | info( |
| 355 | "Posting files to [base] url " |
| 356 | + solrUpdateUrl |
| 357 | + (!auto ? " using content-type " + (type == null ? DEFAULT_CONTENT_TYPE : type) : "") |
| 358 | + "..."); |
| 359 | if (auto) { |
| 360 | info("Entering auto mode. File endings considered are " + fileTypes); |
| 361 | } |
| 362 | if (recursive > 0) { |
| 363 | if (recursionPossible(args)) { |
| 364 | info("Entering recursive mode, max depth=" + recursive + ", delay=" + delay + "s"); |
| 365 | } |
| 366 | } |
| 367 | fileFilter = getFileFilterFromFileTypes(fileTypes); |
| 368 | int numFilesPosted = postFiles(args, 0, out, type); |
| 369 | if (dryRun) { |
| 370 | info("Dry run complete. " + numFilesPosted + " would have been indexed."); |
| 371 | } else { |
| 372 | info(numFilesPosted + " files indexed."); |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | private void doArgsMode(String[] args) { |
| 377 | info("POSTing args to " + solrUpdateUrl + "..."); |
no test coverage detected