Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for fileValue (0.6 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildCacheKeyFixture.groovy

                }
    
                if (gradle.parent == null) {
                    def collector = gradle.sharedServices.registerIfAbsent("buildCacheKeyCollector", BuildCacheKeyCollector) {
                        parameters.buildCacheKeyJson.fileValue(new File("${TextUtil.normaliseFileSeparators(file.absolutePath)}"))
                    }
                    gradle.services.get(${BuildEventListenerRegistryInternal.name}).onOperationCompletion(collector)
                }
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java

                    implementation,
                    classLoaderHasher.getClassLoaderHash(implementation.getClass().getClassLoader()));
            }
    
            @Override
            public ValueSnapshot fileValue(File value) {
                return new FileValueSnapshot(value);
            }
    
            @Override
            public ValueSnapshot attributeValue(Attribute<?> value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java

                throw new IsolationException(implementationClassIdentifier);
            }
    
            @Override
            public Isolatable<?> fileValue(File value) {
                return new FileValueSnapshot(value);
            }
    
            @Override
            public Isolatable<?> attributeValue(Attribute<?> value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeCodeGenTest.groovy

            "RegularFileProperty"         | "File"           | "self.getProperty().getAsFile().getOrNull()"     | ".fileValue(arg0)" | [File]
            "DirectoryProperty"           | "File"           | "self.getProperty().getAsFile().getOrNull()"     | ".fileValue(arg0)" | [File]
            "ConfigurableFileCollection"  | "FileCollection" | "self.getProperty()"                             | ".setFrom(arg0)"   | [FileCollection]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeClassSourceGenerator.java

            String assignment;
            switch (upgradedPropertyType) {
                case REGULAR_FILE_PROPERTY:
                case DIRECTORY_PROPERTY:
                    assignment = ".fileValue(arg0)";
                    break;
                case CONFIGURABLE_FILE_COLLECTION:
                    assignment = ".setFrom(arg0)";
                    break;
                case LIST_PROPERTY:
                case SET_PROPERTY:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:11:23 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestTest.groovy

        }
    
        def 'fails if custom executable does not exist'() {
            def task = project.tasks.create("test", Test)
            task.testClassesDirs = TestFiles.fixed(new File("tmp"))
            task.binaryResultsDirectory.fileValue(new File("out"))
            def invalidExecutable = temporaryFolder.file("invalidExecutable")
    
            when:
            task.executable = invalidExecutable
            task.javaLauncher.get()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

            String paramValue = options.paramValue ?: "1"
            String fileValue = options.fileValue ?: "String.valueOf(input.length())"
            boolean incremental = options.incremental ?: false
    
            """
                ext.paramValue = $paramValue
    
                ${registerFileSizer(fileValue, incremental)}
    
                project(':util') {
                    dependencies {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFilePropertyFactory.java

                if (file == null) {
                    set((T) null);
                    return;
                }
                set(fromFile(file));
            }
    
            @Override
            public THIS fileValue(@Nullable File file) {
                set(file);
                return Cast.uncheckedNonnullCast(this);
            }
    
            @Override
            public THIS fileProvider(Provider<File> provider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:53:33 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/options/OptionReaderTest.groovy

            when:
            TaskOptionsGenerator.generate(new TestClass5(), reader).getAll()
            then:
            def e = thrown(OptionValidationException)
            e.message == "Option 'fileValue' cannot be cast to type 'java.io.File' in class 'org.gradle.api.internal.tasks.options.OptionReaderTest\$TestClass5'."
        }
    
        def "fails when method has > 1 parameter"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 12:45:01 UTC 2023
    - 33.4K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

                        outputFile.get().asFile.text = "classes"
                    }
                }
    
                task compile(type: Compile) {
                    sources.fileValue(file("src"))
                    outputFile = file("classes.jar")
                }
            """
    
            // This is to make sure that:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top