Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for loadCompiledKotlinClass (0.17 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/AbstractPrecompiledScriptPluginTest.kt

        }
    
        protected
        inline fun <reified T> instantiatePrecompiledScriptOf(target: T, className: String): Any =
            loadCompiledKotlinClass(className)
                .getConstructor(T::class.java, T::class.java)
                .newInstance(target, target)
    
        protected
        fun loadCompiledKotlinClass(className: String): Class<*> =
            classLoaderFor(existing("build/classes/kotlin/main"))
                .loadClass(className)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 11:39:02 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/precompiled/PrecompiledScriptPluginTemplatesTest.kt

                """
            )
    
            // when:
            compileKotlin()
    
            // then:
            @Suppress("unchecked_cast")
            val pluginAdapter =
                loadCompiledKotlinClass("MyProjectScriptPlugin")
                    .getConstructor()
                    .newInstance() as Plugin<Project>
    
            val exception =
                assertFailsWith(IllegalStateException::class) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 11:39:02 UTC 2023
    - 20.1K bytes
    - Viewed (0)
Back to top