File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/util Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -62,22 +62,21 @@ public static boolean validate(String ctagsBinary) {
62
62
return false ;
63
63
}
64
64
65
- return canProcessFiles (RuntimeEnvironment .getInstance ().getSourceRootPath ());
65
+ return canProcessFiles (RuntimeEnvironment .getInstance ().getSourceRootFile ());
66
66
}
67
67
68
68
/**
69
69
* Run ctags program on a known temporary file to be created under given path and see if it was possible
70
70
* to get some symbols.
71
- * @param basePath path to use for storing the temporary file
71
+ * @param baseDir directory to use for storing the temporary file
72
72
* @return true if at least one symbol was found, false otherwise
73
73
*/
74
- private static boolean canProcessFiles (String basePath ) {
74
+ private static boolean canProcessFiles (File baseDir ) {
75
75
Path inputPath ;
76
76
try {
77
- inputPath = File .createTempFile ("ctagsValidation" , ".c" ,
78
- new File (basePath )).toPath ();
77
+ inputPath = File .createTempFile ("ctagsValidation" , ".c" , baseDir ).toPath ();
79
78
} catch (IOException e ) {
80
- LOGGER .log (Level .WARNING , "cannot create temporary file in ''{0}''" , basePath );
79
+ LOGGER .log (Level .WARNING , "cannot create temporary file in ''{0}''" , baseDir );
81
80
return false ;
82
81
}
83
82
final String resourceFileName = "sample.c" ;
You can’t perform that action at this time.
0 commit comments