Skip to content

Commit 4be1179

Browse files
committed
add warning about -W and subFiles
1 parent 1b93561 commit 4be1179

File tree

1 file changed

+6
-0
lines changed
  • opengrok-indexer/src/main/java/org/opengrok/indexer/index

1 file changed

+6
-0
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ public static void main(String[] argv) {
332332
System.exit(1);
333333
}
334334

335+
if (!subFiles.isEmpty() && configFilename != null) {
336+
LOGGER.log(Level.WARNING, "The collection of entries to process is non empty ({0}), seems like " +
337+
"the intention is to perform per project reindex, however the -W option is used. " +
338+
"This will likely not work.", subFiles);
339+
}
340+
335341
Metrics.updateSubFiles(subFiles);
336342

337343
// If the webapp is running with a config that does not contain

0 commit comments

Comments
 (0)