Skip to content

Commit 225d085

Browse files
author
Vladimir Kotal
committed
fix the logic and report ctags version
1 parent f969740 commit 225d085

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/RuntimeEnvironment.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,15 +612,16 @@ public boolean validateUniversalCtags() {
612612
executor.exec(false);
613613
String output = executor.getOutputString();
614614
boolean isUnivCtags = output != null && output.contains("Universal Ctags");
615-
if (output == null && !isUnivCtags) {
616-
LOGGER.log(Level.SEVERE, "Error: No Universal Ctags found in PATH !\n"
615+
if (output == null || !isUnivCtags) {
616+
LOGGER.log(Level.SEVERE, "Error: No Universal Ctags found !\n"
617617
+ "(tried running " + "{0}" + ")\n"
618618
+ "Please use the -c option to specify path to a "
619619
+ "Universal Ctags program.\n"
620-
+ "Or set it in Java system property "
621-
+ SYSTEM_CTAGS_PROPERTY, getCtags());
620+
+ "Or set it in Java system property {1}",
621+
new Object[]{getCtags(), SYSTEM_CTAGS_PROPERTY});
622622
ctagsFound = false;
623623
} else {
624+
LOGGER.log(Level.INFO, "Using ctags: {0}", output.trim());
624625
ctagsFound = true;
625626
}
626627
}

0 commit comments

Comments
 (0)