[minor] Fix classpath from class calculation utility for classes dir

This commit is contained in:
Ilya Chernikov
2019-09-17 16:59:31 +02:00
parent 7592048437
commit bda2e46697
2 changed files with 9 additions and 1 deletions
@@ -118,7 +118,7 @@ internal fun ClassLoader.rawClassPathFromKeyResourcePath(keyResourcePath: String
keyResourcePathDepth = keyResourcePath.trim('/').count { it == '/' }
}
var root = file
for (i in 1..keyResourcePathDepth) {
for (i in 0..keyResourcePathDepth) {
root = root.parentFile
}
root