Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 179 for node_map (0.14 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/type/ModelTypes.java

    import groovy.lang.GroovyObject;
    import org.gradle.model.ModelMap;
    import org.gradle.model.ModelSet;
    
    import java.util.ArrayDeque;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Queue;
    import java.util.Set;
    
    public abstract class ModelTypes {
    
        public static <I> ModelType<ModelMap<I>> modelMap(Class<I> type) {
            return modelMap(ModelType.of(type));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/internal/registry/BinaryTasksModelRuleExtractorTest.groovy

            static void noBinaryParameter(ModelMap<Task> builder) {
            }
    
            @BinaryTasks
            static void multipleBinaryParameters(ModelMap<Task> builder, BinarySpec b1, BinarySpec b2) {
            }
    
            @BinaryTasks
            private <T> T multipleProblems(String p1, String p2) {
            }
    
            @BinaryTasks
            static void validTypeRule(ModelMap<Task> tasks, SomeBinarySpec binary) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelMapStrategy.java

                if (!type.getRawClass().equals(ModelMap.class)) {
                    extractionContext.add(String.format("subtyping %s is not supported.", ModelMap.class.getName()));
                    return;
                }
    
                if (type.isHasWildcardTypeVariables()) {
                    extractionContext.add(String.format("type parameter of %s cannot be a wildcard.", ModelMap.class.getName()));
                    return;
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InvalidManagedModelMutationIntegrationTest.groovy

            failure.assertHasCause("Exception thrown while executing model rule: RulePlugin#tryToModifyCompositeSubjectOfAnotherRule(ModelMap<Task>, Person)")
            failure.assertHasCause("Attempt to modify a read only view of model element 'person.pet' of type 'Pet' given to rule RulePlugin#tryToModifyCompositeSubjectOfAnotherRule(ModelMap<Task>, Person)")
        }
    
        def "mutating managed inputs of a dsl rule is not allowed"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy

            fails()
    
            and:
            failure.assertHasCause("Exception thrown while executing model rule: RulePlugin#mutate(ModelMap<Task>, ModelMap<Person>)")
            failure.assertHasCause("Attempt to modify a read only view of model element 'people' of type 'ModelMap<Person>' given to rule RulePlugin#mutate(ModelMap<Task>, ModelMap<Person>)")
        }
    
        def "cannot mutate when used as subject of validate rule"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentSourceSetIntegrationTest.groovy

                }
                apply plugin: TestRules
    
                class ValidateTaskRules extends RuleSource {
                    @Mutate
                    void createValidateTask(ModelMap<Task> tasks, @Path("components.sampleLib.sources") ModelMap<LanguageSourceSet> sources) {
                        tasks.create("validate") {
                            assert sources.haxe != null
                            assert sources.haxe.publicData == "public"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  7. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentBinariesIntegrationTest.groovy

                                tasks()
                                sources()
                            }
                            otherBinary(type: 'OtherSampleBinary', creator: 'MyComponentBinariesPlugin.Rules#createBinariesForSampleLibrary(ModelMap<SampleBinary>, SampleLibrary) > create(otherBinary)') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class RuleSourceAppliedToModelMapElementIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule source can be applied to ModelMap element"() {
            when:
            buildScript '''
                class MessageTask extends DefaultTask {
                    @Internal
                    String message = "default"
    
                    @TaskAction
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedScalarCollectionsIntegrationTest.groovy

                void createContainer(Container c) {}
    
                @Mutate
                void addItems(Container c) {
                    c.items.add 'foo'
                }
    
                @Mutate
                void addCheckTask(ModelMap<Task> tasks, Container c) {
                    tasks.create('check') {
                        assert c.items == ['foo'] as $type
                    }
                }
            }
    
            apply plugin: Rules
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ManagedWithReferenceOfInvalidManagedType.java

     * limitations under the License.
     */
    
    package org.gradle.model.internal.inspect;
    
    import org.gradle.model.Managed;
    import org.gradle.model.ModelMap;
    
    @Managed
    public interface ManagedWithReferenceOfInvalidManagedType {
        ModelMap<?> getInvalidManaged();
        void setInvalidManaged(ModelMap<?> invalidManaged);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 893 bytes
    - Viewed (0)
Back to top