From e3bf37c0ef8c88755f1d2d15d3ba6d07d649e005 Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Thu, 13 Aug 2020 19:54:42 +0200 Subject: Use List for representing classpaths instead of Set --- runners/cli/src/main/kotlin/cli/main.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'runners/cli/src') diff --git a/runners/cli/src/main/kotlin/cli/main.kt b/runners/cli/src/main/kotlin/cli/main.kt index 4b0bd04e..a9177ce7 100644 --- a/runners/cli/src/main/kotlin/cli/main.kt +++ b/runners/cli/src/main/kotlin/cli/main.kt @@ -36,14 +36,12 @@ class GlobalArguments(args: Array) : DokkaConfiguration { description = "Configuration for plugins in format fqPluginName=json^^fqPluginName=json..." ).default(emptyMap()) - private val pluginsClasspathList by parser.option( + override val pluginsClasspath by parser.option( ArgTypeFile, fullName = "pluginsClasspath", description = "List of jars with dokka plugins (allows many paths separated by the semicolon `;`)" ).delimiter(";") - override val pluginsClasspath: Set by lazy { pluginsClasspathList.toMutableSet() } - override val offlineMode by parser.option( ArgType.Boolean, "Offline mode (do not download package lists from the Internet)" @@ -223,7 +221,7 @@ private fun parseSourceSet(args: Array): DokkaConfiguration.DokkaSourceS override val moduleDisplayName = moduleDisplayName ?: moduleName override val displayName = displayName override val sourceSetID = DokkaSourceSetID(moduleName, sourceSetName) - override val classpath = classpath.toMutableSet() + override val classpath = classpath.toMutableList() override val sourceRoots = sourceRoots.toMutableSet() override val dependentSourceSets = dependentSourceSets .map { dependentSourceSetName -> dependentSourceSetName.split('/').let { DokkaSourceSetID(it[0], it[1]) } } -- cgit