Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 88 for publicType (0.2 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionContainerTest.groovy

            container.add "cat", new Thing("gizmo")
            container.add "meo", container.instanceGenerator.newInstance(Thing, "w")
    
            def schemaMap = container.extensionsSchema.collectEntries { [it.name, it.publicType] }
            expect:
            schemaMap == [ext: typeOf(ExtraPropertiesExtension),
                          foo: typeOf(Parent),
                          bar: typeOf(Capability),
                          boo: typeOf(Child),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectCollectionTest.groovy

            def actualSchema = container.collectionSchema
            Map<String, String> actualSchemaMap = actualSchema.elements.collectEntries { schema ->
                [ schema.name, schema.publicType.simpleName ]
            }.sort()
            def expectedSchemaMap = expectedSchema.sort()
            assert expectedSchemaMap == actualSchemaMap
        }
    
        static class Bean {
            public final String name
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 24 14:51:02 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  3. platforms/ide/ide-plugins/src/test/groovy/org/gradle/plugins/ide/idea/IdeaPluginTest.groovy

            property << [{ it.sourceDirs }, { it.resourceDirs }, { it.excludeDirs }]
        }
    
        private TypeOf<?> publicTypeOfExtension(String named) {
            project.extensions.extensionsSchema.find { it.name == named }.publicType
        }
    
        private void assertThatIdeaModuleIsProperlyConfigured(Project project) {
            GenerateIdeaModule ideaModuleTask = project.ideaModule
            assert ideaModuleTask instanceof GenerateIdeaModule
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 01 11:07:39 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractNamedDomainObjectContainerTest.groovy

            container.list1.prop == 'list1'
            container.list2.prop == 'list2'
        }
    
        def "has public type"() {
            expect:
            container.publicType == new TypeOf<NamedDomainObjectContainer<TestObject>>() {}
        }
    
    
        static class Owner {
            void thing(Closure closure) {}
        }
    
    
        @Issue("https://issues.gradle.org/browse/GRADLE-3126")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 27 06:24:30 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ValidationActions.java

            if (instance == null) {
                return Object.class.getSimpleName();
            }
            if (instance instanceof GeneratedSubclass) {
                return ModelType.of(((GeneratedSubclass) instance).publicType()).getDisplayName();
            }
            return ModelType.typeOf(instance).getDisplayName();
        }
    
        private static String toCandidateSolution(String conversionCandidate) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultPolymorphicDomainObjectContainerTest.groovy

            def actualSchema = container.collectionSchema
            Map<String, String> actualSchemaMap = actualSchema.elements.collectEntries { schema ->
                [schema.name, schema.publicType.simpleName]
            }.sort()
            def expectedSchemaMap = expectedSchema.sort()
            assert expectedSchemaMap == actualSchemaMap
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 16K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/JavaBasePluginTest.groovy

            when:
            project.pluginManager.apply(JavaBasePlugin)
    
            then:
            project.extensions.extensionsSchema.find { it.name == "sourceSets" }.publicType == typeOf(SourceSetContainer)
        }
    
        def "properties on convention and extension are synchronized"() {
            when:
            project.pluginManager.apply(JavaBasePlugin)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDefinitionIntegrationTest.groovy

                    assert false : "This should not be realized"
                }
    
                def schema = tasks.collectionSchema.elements.collectEntries { e ->
                    [ e.name, e.publicType.simpleName ]
                }
    
                // check some built-in tasks
                assert schema["help"] == "Help"
                assert schema["projects"] == "ProjectReportTask"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 14:43:53 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java

            protected void serialize(Encoder encoder, IsolatedImmutableManagedValue value) throws Exception {
                encoder.writeInt(value.getValue().getFactoryId());
                encoder.writeString(value.getValue().publicType().getName());
                writeState(encoder, value.getValue().unpackState());
            }
    
            @Override
            protected IsolatedImmutableManagedValue deserialize(Decoder decoder) throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java

            setToConventionIfUnset();
            action.execute(getConfigurer());
        }
    
        @Override
        public boolean isImmutable() {
            return false;
        }
    
        @Override
        public Class<?> publicType() {
            return ConfigurableFileCollection.class;
        }
    
        @Override
        public Object unpackState() {
            return getFiles();
        }
    
        @Override
        public void finalizeValue() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 16:06:55 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top