override fun copy()

in src/main/kotlin/org/jetbrains/intellij/platform/gradle/tasks/JarSearchableOptionsTask.kt [39:55]


    override fun copy() {

        if (noSearchableOptionsWarning.get()) {
            val noSearchableOptions = source.none {
                it.name.endsWith(SEARCHABLE_OPTIONS_SUFFIX_XML) || it.name.endsWith(SEARCHABLE_OPTIONS_SUFFIX_JSON)
            }
            if (noSearchableOptions) {
                log.warn(
                    "No searchable options found. If the plugin does not provide custom settings, " +
                            "disable building searchable options to improve build performance. " +
                            "See: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html#intellijPlatform-buildSearchableOptions"
                )
            }
        }

        super.copy()
    }