File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
plugins/crlf-plugin/src/main/kotlin/com/github/vlsi/gradle/git Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import org.eclipse.jgit.treewalk.TreeWalk
29
29
import org.gradle.api.file.FileTreeElement
30
30
import org.gradle.api.file.RelativePath
31
31
import org.gradle.api.specs.Spec
32
+ import org.slf4j.LoggerFactory
32
33
import java.io.File
33
34
import java.lang.UnsupportedOperationException
34
35
import java.nio.file.Path
@@ -92,6 +93,9 @@ class DirectorySet<E> {
92
93
}
93
94
94
95
abstract class GitHolder <T , V >(rootPath : Path ) {
96
+ companion object {
97
+ val log = LoggerFactory .getLogger(GitHolder ::class .java)
98
+ }
95
99
private val rootDir = rootPath.toFile()
96
100
private val rootAbsolutePath = rootDir.canonicalPath
97
101
@@ -125,6 +129,7 @@ abstract class GitHolder<T, V>(rootPath: Path) {
125
129
element.isDirectory
126
130
} catch (e: UnsupportedOperationException ) {
127
131
// If the element is not accessible, assume it is a directory
132
+ log.warn(" File ${element.file} is not accessible, so can't tell if it should be ingored or not with .gitignore filters" )
128
133
true
129
134
}
130
135
)
You can’t perform that action at this time.
0 commit comments