Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for pluginOpen (0.27 sec)

  1. src/plugin/plugin_dlopen.go

    package plugin
    
    /*
    #cgo linux LDFLAGS: -ldl
    #include <dlfcn.h>
    #include <limits.h>
    #include <stdlib.h>
    #include <stdint.h>
    
    #include <stdio.h>
    
    static uintptr_t pluginOpen(const char* path, char** err) {
    	void* h = dlopen(path, RTLD_NOW|RTLD_GLOBAL);
    	if (h == NULL) {
    		*err = (char*)dlerror();
    	}
    	return (uintptr_t)h;
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:55:22 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/PluginTreeTest.kt

        @Test
        fun `PluginTree#of`() {
    
            val flatPlugin = PluginTree.PluginSpec("flat-plugin", "FlatPlugin")
            val nestedPluginA = PluginTree.PluginSpec("nested.plugin-a", "NestedPluginA")
            val nestedPluginB = PluginTree.PluginSpec("nested.other.plugin-b", "NestedPluginB")
            val nestedPluginC = PluginTree.PluginSpec("nested.other.plugin-c", "NestedPluginC")
            assertThat(
                PluginTree.of(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/PluginTree.kt

    internal
    sealed class PluginTree {
    
        data class PluginGroup(val path: List<String>, val plugins: Map<String, PluginTree>) : PluginTree()
    
        data class PluginSpec(val id: String, val implementationClass: String) : PluginTree()
    
        companion object {
    
            fun of(plugins: Sequence<PluginSpec>): Map<String, PluginTree> {
                val root = linkedMapOf<String, PluginTree>()
                plugins.sortedBy { it.id }.forEach { plugin ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/PluginDependencySpecAccessorsTest.kt

                    linkedMapOf(
                        "my-plugin" to PluginTree.PluginSpec(
                            "my-plugin", "my.Plugin"
                        ),
                        "my" to PluginTree.PluginGroup(
                            listOf("my"),
                            linkedMapOf(
                                "plugin-a" to PluginTree.PluginSpec("my.plugin-a", "my.PluginA")
                            )
                        )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/catalog/parser/TomlCatalogFileParserTest.groovy

        void hasPlugin(String alias, @DelegatesTo(strategy = Closure.DELEGATE_FIRST, value = PluginSpec) Closure<Void> spec) {
            assert model.hasPlugin(alias)
            def plugin = model.getPlugin(alias)
            assert plugin != null : "Expected a plugin with alias '$alias' but it wasn't found"
            def pluginSpec = new PluginSpec(plugin)
            spec.delegate = pluginSpec
            spec.resolveStrategy = Closure.DELEGATE_FIRST
            spec()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 05:41:21 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreter.kt

                    )
                }
            }
    
            val pluginSpec by debug {
                pluginIdSpec + kotlinDslSpec
            }
    
            val firstLines by debug {
                zeroOrMore(pluginSpec * statementSeparator())
            }
    
            val lastLine by debug {
                optional(pluginSpec * wsOrNewLine())
            }
    
            token(LBRACE) * wsOrNewLine() *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/plugins/JavaGradlePluginRelocationTest.groovy

                            }
                        }
                    }
                """
                file("src/test/groovy/PluginSpec.groovy") << """
                    import spock.lang.Specification
    
                    class PluginSpec extends Specification {
                        def "dummy test"() {
                            expect:
                            true
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/GeneratePluginSpecBuilderAccessors.kt

    
    private
    fun pluginSpecsFrom(pluginDescriptorsClassPath: ClassPath): Sequence<PluginTree.PluginSpec> =
        pluginDescriptorsClassPath
            .asFiles
            .asSequence()
            .filter { it.isFile && it.extension.equals("jar", true) }
            .flatMap { pluginEntriesFrom(it).asSequence() }
            .map { PluginTree.PluginSpec(it.pluginId, it.implementationClass) }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildScriptBuilder.java

                String versionCatalogRef = buildContentGenerationContext.getVersionCatalogDependencyRegistry().registerPlugin(pluginId, version);
                plugin = new PluginSpec(versionCatalogRef, comment);
            } else {
                plugin = new PluginSpec(pluginId, version, comment);
            }
            block.plugins.add(plugin);
            return this;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 90K bytes
    - Viewed (0)
Back to top