File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/org/opensolaris/opengrok/index Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -757,14 +757,15 @@ private static void cleanupResources(Document doc) {
757
757
*/
758
758
private boolean accept (File file ) {
759
759
760
+ String absolutePath = file .getAbsolutePath ();
761
+
760
762
if (!includedNames .isEmpty ()
761
763
&& // the filter should not affect directory names
762
764
(!(file .isDirectory () || includedNames .match (file )))) {
765
+ LOGGER .log (Level .FINER , "not including {0}" , absolutePath );
763
766
return false ;
764
767
}
765
768
766
- String absolutePath = file .getAbsolutePath ();
767
-
768
769
if (ignoredNames .ignore (file )) {
769
770
LOGGER .log (Level .FINER , "ignoring {0}" , absolutePath );
770
771
return false ;
@@ -807,7 +808,13 @@ private boolean accept(File file) {
807
808
}
808
809
809
810
// this is an unversioned file, check if it should be indexed
810
- return !RuntimeEnvironment .getInstance ().isIndexVersionedFilesOnly ();
811
+ RuntimeEnvironment env = RuntimeEnvironment .getInstance ();
812
+ boolean res = !env .isIndexVersionedFilesOnly ();
813
+ if (!res ) {
814
+ LOGGER .log (Level .FINER , "not accepting unversioned {0}" ,
815
+ absolutePath );
816
+ }
817
+ return res ;
811
818
}
812
819
813
820
private boolean accept (File parent , File file ) {
You can’t perform that action at this time.
0 commit comments