Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 216 for asFile (0.15 sec)

  1. testing/internal-integ-testing/build.gradle.kts

    }
    
    sourceSets.main {
        groovy.srcDir(generateLanguageAnnotations.flatMap { it.destDir })
        output.dir(prepareVersionsInfo.map { it.destFile.get().asFile.parentFile })
        output.dir(copyTestedVersionsInfo)
    }
    
    @CacheableTask
    abstract class PrepareVersionsInfo : DefaultTask() {
    
        @get:OutputFile
        abstract val destFile: RegularFileProperty
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/CleanAcceptedApiChanges.groovy

        @InputDirectory
        abstract DirectoryProperty getJsonFileDirectory()
    
        @TaskAction
        void clean() {
            def jsonFileManager = new AcceptedApiChangesJsonFileManager()
            jsonFileDirectory.asFile.get().listFiles()
                ?.findAll { it.name.endsWith(".json") }
                ?.each { jsonFileManager.emptyAcceptedApiChanges(it) }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:27:29 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/transforms/FindGradleJars.groovy

        @InputArtifact
        abstract Provider<FileSystemLocation> getArtifact()
    
        @Override
        void transform(TransformOutputs outputs) {
            File baselineJarsDirectory = artifact.get().asFile
            if (baselineJarsDirectory.name == 'gradle-jars') {
                baselineJarsDirectory.listFiles().each {
                    outputs.file(it)
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 12:20:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginIntegrationTest.groovy

                        assert maxPriority2Violations == 0
                        assert maxPriority3Violations == 0
                        assert reports.enabled*.name == ["html"]
                        assert reports.html.outputLocation.asFile.get() == project.file("build/reports/codenarc/${sourceSet.name}.html")
                        assert ignoreFailures == false
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 08:01:57 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

                    @get:OutputFile
                    abstract val outputFile: RegularFileProperty
                    @TaskAction
                    fun printString() {
                        outputFile.get().asFile.writeText("absent")
                    }
                }
                val producer = tasks.register<ProduceString>("produceString") {
                    outputFile.set(layout.buildDirectory.file("output.txt"))
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/ChangesBetweenBuildsFileSystemWatchingIntegrationTest.groovy

                    @OutputFile
                    abstract RegularFileProperty getTarget()
    
                    @TaskAction
                    def execute() {
                        target.get().asFile.text = source.get().asFile.text
                    }
                }
    
                tasks.register("run", CustomTask) {
                    source = file("source.txt")
                    target = file("build/target.txt")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TransformProgressEventCrossVersionSpec.groovy

                    @InputArtifact
                    abstract Provider<FileSystemLocation> getInputArtifact()
    
                    void transform(TransformOutputs outputs) {
                        def input = inputArtifact.get().asFile
                        def output = outputs.file(input.name + ".txt")
                        output.text = String.valueOf(input.length())
                    }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-java-library/src/test/groovy/org/gradle/api/plugins/JavaLibraryPluginTest.groovy

            def apiVariant = javaLibrary.usages.find { it.name == 'apiElements' }
    
            then:
            runtimeVariant.artifacts.collect {it.file} == [jarTask.archiveFile.get().asFile]
            runtimeVariant.dependencies.size() == 2
            runtimeVariant.dependencies == project.configurations.getByName(JvmConstants.RUNTIME_CLASSPATH_CONFIGURATION_NAME).allDependencies.withType(ModuleDependency)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 20:08:52 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt

        val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD")
    
        @Suppress("UnstableApiUsage")
        private
        fun git(vararg args: String): Provider<String> {
            val projectDir = parameters.rootProjectDir.asFile.get()
            val execOutput = providers.exec {
                workingDir = projectDir
                isIgnoreExitValue = true
                commandLine = listOf("git", *args)
                if (OperatingSystem.current().isWindows) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 05:01:36 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. platforms/core-configuration/flow-services/src/integTest/groovy/org/gradle/internal/flow/services/FlowScopeIntegrationTest.groovy

                            parameters.text = producer.flatMap { it.outputFile }.map { it.asFile.text }
                        }
                    }
                }
    
                abstract class Producer extends DefaultTask {
                    @OutputFile abstract RegularFileProperty getOutputFile()
                    @TaskAction def produce() {
                        outputFile.get().asFile << "42"
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:01:34 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top