Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for objects (0.2 sec)

  1. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionPropertyIntegrationTest.groovy

            buildFile """
                class FileOutputTask extends DefaultTask {
                    @InputFile
                    final RegularFileProperty inputFile = project.objects.fileProperty()
                    @OutputFile
                    final RegularFileProperty outputFile = project.objects.fileProperty()
    
                    @TaskAction
                    void go() {
                        def file = outputFile.asFile.get()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyIntegrationTest.groovy

        final RegularFileProperty inFile = project.objects.fileProperty()
    
        @Optional @InputDirectory
        final DirectoryProperty inDir = project.objects.directoryProperty()
    
        @Optional @OutputFile
        final RegularFileProperty outFile = project.objects.fileProperty()
    
        @Optional @OutputDirectory
        final DirectoryProperty outDir = project.objects.directoryProperty()
    
        @TaskAction
        def go() { }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/Describables.java

            public int hashCode() {
                return Objects.hashCode(part1, part2);
            }
        }
    
        private static class ThreePartDescribable extends AbstractDescribable {
            private final Object part1;
            private final Object part2;
            private final Object part3;
    
            ThreePartDescribable(Object part1, Object part2, Object part3) {
                this.part1 = part1;
                this.part2 = part2;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/Collectors.java

            @Override
            public boolean equals(Object o) {
                if (this == o) {
                    return true;
                }
                if (o == null || getClass() != o.getClass()) {
                    return false;
                }
                TypedCollector<?> that = (TypedCollector<?>) o;
                return Objects.equal(type, that.type) &&
                    Objects.equal(delegate, that.delegate);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

    }
    
    task wrongPropertyTypeDsl(type: MyTask) {
        def objects = objects
        doLast {
            prop = objects.property(Integer)
        }
    }
    
    task wrongPropertyTypeApi(type: MyTask) {
        def objects = objects
        doLast {
            prop.set(objects.property(Integer))
        }
    }
    
    task wrongPropertyElementTypeDsl(type: MyTask) {
        def objects = objects
        doLast {
            prop = objects.listProperty(Integer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MapPropertyIntegrationTest.groovy

                def objects = objects
                doLast {
                    myExt.prop = objects.property(Integer)
                }
            }
    
            task wrongPropertyTypeApi {
                def myExt = project.extensions.getByType(MyExtension)
                def objects = objects
                doLast {
                    myExt.prop.set(objects.property(Integer))
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 15:28:53 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheSupportedTypesIntegrationTest.groovy

            "SetProperty<String>"         | "objects.setProperty(String)"         | "[]"                 | "[]"
            "SetProperty<String>"         | "objects.setProperty(String)"         | "['abc']"            | ['abc']
            "SetProperty<String>"         | "objects.setProperty(String)"         | "null"               | "null"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderIntegrationTest.groovy

        }
    
        def "zipped provider is live"() {
            buildFile """
                tasks.register("run") {
                    def objects = objects
                    doLast {
                        def p1 = objects.property(String)
                        def p2 = objects.property(String)
                        def zipped = p1.zip(p2) { l, r -> l + " " + r }
                        p1.set("Beautiful")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 15:32:52 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  9. build-logic/packaging/src/main/kotlin/gradlebuild.distributions.gradle.kts

            attributes {
                attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
                attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.LIBRARY))
                attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(elements))
                attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(bundling))
            }
            isCanBeResolved = false
            isCanBeConsumed = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/project/DeclarativeDslProjectBuildFileIntegrationSpec.groovy

                private final ObjectFactory objects;
    
                public Access getPrimaryAccess() {
                    return primaryAccess;
                }
    
                @Inject
                public Extension(ObjectFactory objects) {
                    this.objects = objects;
                    this.primaryAccess = objects.newInstance(Access.class);
                    this.primaryAccess.getName().set("primary");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top