Do not warn on non-JAR files in classpath
#KT-17140 Fixed
This commit is contained in:
@@ -307,15 +307,8 @@ class KotlinCoreEnvironment private constructor(
|
|||||||
internal fun findLocalDirectory(absolutePath: String): VirtualFile? =
|
internal fun findLocalDirectory(absolutePath: String): VirtualFile? =
|
||||||
applicationEnvironment.localFileSystem.findFileByPath(absolutePath)
|
applicationEnvironment.localFileSystem.findFileByPath(absolutePath)
|
||||||
|
|
||||||
private fun findJarRoot(root: JvmClasspathRoot): VirtualFile? {
|
private fun findJarRoot(root: JvmClasspathRoot): VirtualFile? =
|
||||||
val path = root.file
|
applicationEnvironment.jarFileSystem.findFileByPath("${root.file}${URLUtil.JAR_SEPARATOR}")
|
||||||
val jarFile = applicationEnvironment.jarFileSystem.findFileByPath("$path${URLUtil.JAR_SEPARATOR}")
|
|
||||||
if (jarFile == null) {
|
|
||||||
report(STRONG_WARNING, "Classpath entry points to a file that is not a JAR archive: $path")
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
return jarFile
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun getSourceRootsCheckingForDuplicates(): Collection<String> {
|
private fun getSourceRootsCheckingForDuplicates(): Collection<String> {
|
||||||
val uniqueSourceRoots = Sets.newLinkedHashSet<String>()
|
val uniqueSourceRoots = Sets.newLinkedHashSet<String>()
|
||||||
|
|||||||
Reference in New Issue
Block a user