From f55d000ac5f7609a6cc8472e315ae45d4cbcc77b Mon Sep 17 00:00:00 2001 From: Kamil Doległo Date: Mon, 1 Jul 2019 12:50:22 +0200 Subject: Fix bug with nonexistent file on native --- core/src/main/kotlin/Analysis/DokkaAnalyzerFacades.kt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/Analysis/DokkaAnalyzerFacades.kt b/core/src/main/kotlin/Analysis/DokkaAnalyzerFacades.kt index 082d3968..874341dd 100644 --- a/core/src/main/kotlin/Analysis/DokkaAnalyzerFacades.kt +++ b/core/src/main/kotlin/Analysis/DokkaAnalyzerFacades.kt @@ -88,7 +88,7 @@ object DokkaJsAnalyzerFacade : ResolverForModuleFactory() { .filter { it.version.isCompatible() } .map { metadata -> val (header, packageFragmentProtos) = - KotlinJavascriptSerializationUtil.readModuleAsProto(metadata.body, metadata.version) + KotlinJavascriptSerializationUtil.readModuleAsProto(metadata.body, metadata.version) createKotlinJavascriptPackageFragmentProvider( moduleContext.storageManager, moduleDescriptor, header, packageFragmentProtos, metadata.version, container.get(), LookupTracker.DO_NOTHING @@ -147,14 +147,15 @@ object DokkaNativeAnalyzerFacade : ResolverForModuleFactory() { if (moduleInfo is LibraryModuleInfo) { moduleInfo.getLibraryRoots() - .map { createKonanLibrary(File(it), KOTLIN_NATIVE_CURRENT_ABI_VERSION) } - .mapTo(fragmentProviders) { - it.createPackageFragmentProvider( - moduleContext.storageManager, - languageVersionSettings, - moduleDescriptor - ) - } + .filter { File(it).extension != "jar" } + .map { createKonanLibrary(File(it), KOTLIN_NATIVE_CURRENT_ABI_VERSION) } + .mapTo(fragmentProviders) { + it.createPackageFragmentProvider( + moduleContext.storageManager, + languageVersionSettings, + moduleDescriptor + ) + } } -- cgit