File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/configuration Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -612,15 +612,16 @@ public boolean validateUniversalCtags() {
612
612
executor .exec (false );
613
613
String output = executor .getOutputString ();
614
614
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 "
617
617
+ "(tried running " + "{0}" + ")\n "
618
618
+ "Please use the -c option to specify path to a "
619
619
+ "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 } );
622
622
ctagsFound = false ;
623
623
} else {
624
+ LOGGER .log (Level .INFO , "Using ctags: {0}" , output .trim ());
624
625
ctagsFound = true ;
625
626
}
626
627
}
You can’t perform that action at this time.
0 commit comments