Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 579 for asFile (0.94 sec)

  1. platforms/jvm/plugins-groovy/src/integTest/groovy/org/gradle/groovy/GroovyBasePluginIntegrationTest.groovy

                    def binDir = file("$buildDir/bin")
                    doLast {
                        assert mainGroovyDestDir.get().asFile == compileGroovyDestinationDir.get().asFile
                        assert mainGroovyDestDir.get().asFile == binDir
                    }
                }
            '''
    
            expect:
            succeeds 'assertDirectoriesAreEquals'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/dependencyManagement/artifactTransforms-incremental/kotlin/build.gradle.kts

        @get:InputArtifact
        abstract val input: Provider<FileSystemLocation>
    
        override
        fun transform(outputs: TransformOutputs) {
            val outputDir = outputs.dir("${input.get().asFile.name}.loc")
            println("Running transform on ${input.get().asFile.name}, incremental: ${inputChanges.isIncremental}")
            inputChanges.getFileChanges(input).forEach { change ->          // <2>
                val changedFile = change.file
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIncrementalIntegrationTest.groovy

                    @Inject abstract InputChanges getInputChanges()
    
                    @Override
                    void transform(TransformOutputs outputs) {
                        def input = inputArtifact.get().asFile
                        println "processing [\${input.name}]"
                        def output = outputs.file("\${input.name}.\${parameters.targetColor.get()}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 10:57:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/tasks/BuildBuilderGenerator.groovy

                @Override
                void execute(ExecSpec execSpec) {
                    execSpec.executable = buildBuilderInstall.file("bin/build-builder").get().asFile
                    execSpec.workingDir = generatedDir.get().asFile
                    execSpec.args = resolvedArgs
                }
            })
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 07 13:12:26 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/FileCodecs.kt

            writeFile(value.asFile)
        }
    
        override suspend fun ReadContext.decode(): Directory {
            return fileFactory.dir(readFile())
        }
    }
    
    
    class RegularFileCodec(private val fileFactory: FileFactory) : Codec<RegularFile> {
        override suspend fun WriteContext.encode(value: RegularFile) {
            writeFile(value.asFile)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyGroovyInterOpIntegrationTest.groovy

                    @OutputFile
                    final RegularFileProperty outFile = project.objects.fileProperty()
    
                    @TaskAction
                    def run() {
                        outFile.get().asFile.text = "content"
                    }
                }
            """
        }
    
        @Override
        boolean nestedGetterIsFinal() {
            true
        }
    
        @Override
        void taskWithNestedBeanDefinition() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/resources/CharSourceBackedTextResource.java

                throw ResourceExceptions.readFailed(displayName, e);
            }
        }
    
        @Override
        public File asFile(String charset) {
            throw new UnsupportedOperationException("Cannot create file for char source " + charSource);
        }
    
        @Override
        public File asFile() {
            throw new UnsupportedOperationException("Cannot create file for char source " + charSource);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 27 15:36:08 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/resources/AbstractTextResourceTest.groovy

            } finally {
                reader.close()
            }
        }
    
        def "read as file"() {
            expect:
            resource.asFile().text == "contents"
        }
    
        def "read as file with different encoding"() {
            expect:
            resource.asFile(Charsets.UTF_16.name()).getText(Charsets.UTF_16.name()) == "contents"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 27 11:20:55 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/test/groovy/org/gradle/language/swift/plugins/SwiftBasePluginTest.groovy

            link instanceof LinkExecutable
            link.linkedFile.get().asFile == projectDir.file("build/exe/$exeDir" + OperatingSystem.current().getExecutableName("test_app"))
    
            def install = project.tasks[installTask]
            install instanceof InstallExecutable
            install.installDirectory.get().asFile == projectDir.file("build/install/$exeDir")
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. build-logic/packaging/src/main/kotlin/gradlebuild/instrumentation/tasks/UpgradedPropertiesMergeTask.kt

        @TaskAction
        fun mergeUpgradedProperties() {
            val mergedUpgradedProperties = mergeProperties()
            if (mergedUpgradedProperties.isEmpty) {
                upgradedProperties.asFile.get().delete()
            } else {
                upgradedProperties.asFile.get().writer().use { Gson().toJson(mergedUpgradedProperties, it) }
            }
        }
    
        private
        fun mergeProperties(): JsonArray {
            val merged = JsonArray()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 19 08:13:17 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top