Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 179 for node_map (0.28 sec)

  1. platforms/documentation/docs/src/snippets/modelRules/ruleSourcePluginEach/groovy/build.gradle

    apply plugin: PluginRules
    
    abstract class ValidateRules extends RuleSource {
        @Validate
        void validateSizeIsPositive(ModelMap<FileItem> files) {
            files.each { file ->
                assert file.size > 0
            }
        }
    
        @Validate
        void validateSizeDivisibleBySixteen(ModelMap<FileItem> files) {
            files.each { file ->
                assert file.size % 16 == 0
            }
        }
    }
    
    model {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy

                    @Model
                    void createPerson(Person person) {
                        person.name = "foo"
                    }
    
                    @Mutate
                    void addPersonTask(ModelMap<Task> tasks, Person person) {
                        tasks.create("echo") {
                            it.doLast {
                                println "name: $person.name"
                            }
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelReportIntegrationTest.groovy

                        + binaries
                              | Type:   	org.gradle.model.ModelMap<org.gradle.platform.base.BinarySpec>
                              | Creator: 	myComponent(UnmanagedComponent) { ... } @ build.gradle line 89, column 9
                              | Rules:
                                 ⤷ ComponentModelBasePlugin.PluginRules.AttachInputs#initializeBinarySourceSets(ModelMap<BinarySpec>)
                            + myBinary
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/ComponentBinariesModelRuleExtractorTest.groovy

            static void multipleComponentSpecs(ModelMap<SomeBinarySpec> binaries, SomeLibrary library, SomeLibrary otherLibrary) {
                binaries.create("${library.name}Binary", library)
            }
    
            @ComponentBinaries
            static void noComponentSpec(ModelMap<SomeBinarySpec> binaries) {
            }
    
            @ComponentBinaries
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryTasksIntegrationTest.groovy

                }
    
                @Mutate
                void createSampleComponentComponents(ModelMap<SampleLibrary> componentSpecs) {
                    componentSpecs.create("sampleLib")
                }
    
                @ComponentBinaries
                void createBinariesForSampleLibrary(ModelMap<SampleBinary> binaries, SampleLibrary library) {
                    binaries.create("binaryOne")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/SpecializedMapNodeInitializerExtractionStrategy.java

    import org.gradle.model.internal.type.ModelType;
    
    public class SpecializedMapNodeInitializerExtractionStrategy extends ModelMapNodeInitializerExtractionStrategy {
        private static final ModelType<ModelMap<?>> MODEL_MAP_MODEL_TYPE = new ModelType<ModelMap<?>>() {
        };
    
        @Override
        public <T> NodeInitializer extractNodeInitializer(ModelSchema<T> schema, NodeInitializerContext<T> context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelMapIntegrationTest.groovy

            output.contains "display-name: ModelMap<Thing> 'things'"
            output.contains "to-string: ModelMap<Thing> 'things'"
        }
    
        def "can view as ModelElement"() {
            when:
            buildScript '''
                @Managed
                interface Thing {
                }
    
                class Rules extends RuleSource {
                  @Model
                  void things(ModelMap<Thing> things) {
                  }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

                }
    
                apply type: MyPlugin
            '''
    
            when:
            run()
    
            then:
            output.contains "as map: ModelMap<Task> 'tasks'"
            output.contains("as container:")
            output.contains "as model element: ModelMap<Task> 'tasks'"
            output.contains "name: tasks"
        }
    
        def "can view tasks as various view types"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                    @Mutate
                    void mutateUnmanaged(ModelMap<UnmanagedComponentSpec> components) {
                        components.all { component ->
                            component.unmanagedData = "unmanaged"
                        }
                    }
    
                    @Mutate
                    void mutateManaged(ModelMap<ManagedComponentSpec> components) {
                        components.all { component ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy

                        primitiveTypes.longPropertyFromInt = 123
                        primitiveTypes.longPropertyFromInteger = new Integer(321)
                    }
    
                    @Mutate
                    void addCheckTask(ModelMap<Task> tasks, final PrimitiveTypes primitiveTypes) {
                        tasks.create("check") {
                            it.doLast {
                                assert primitiveTypes.longPropertyFromInt == 123
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.1K bytes
    - Viewed (0)
Back to top