Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for inputDir (0.21 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

                    sources.set(file("inputDir"))
                    outputFile.set(file("build/outputFile.txt"))
                    ${ api == Api.RUNTIME_API
                        ? "inputs.dir(sources).withPathSensitivity(PathSensitivity.RELATIVE).withPropertyName('sources')"
                        : "" }
                }
            """
            def inputDir = file("inputDir").createDir()
            inputDir.createDir("some/empty/sub-directory")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyIntegrationTest.groovy

                    final DirectoryProperty inputDir = project.objects.directoryProperty()
                    @OutputFile
                    final RegularFileProperty outputFile = project.objects.fileProperty()
    
                    @TaskAction
                    void go() {
                        def file = outputFile.asFile.get()
                        file.text = inputDir.asFile.get().listFiles()*.text.join(',')
                    }
    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-execution/execution/src/integTest/groovy/org/gradle/internal/execution/IncrementalExecutionIntegrationTest.groovy

        final inputFile = temporaryFolder.createFile("input-file")
        final inputDir = temporaryFolder.createDir("input-dir")
        final inputDirFile = inputDir.file("input-file2").createFile()
        final missingInputFile = temporaryFolder.file("missing-input-file")
        final inputFiles = [file: [inputFile], dir: [inputDir], missingFile: [missingInputFile]]
        final outputFiles = [file: outputFile, missingFile: missingOutputFile]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/bean/DefaultPropertyWalkerTest.groovy

            1 * visitor.visitInputProperty('bean.nestedInput', { it.call() == 'nested' }, false)
            1 * visitor.visitInputFileProperty('bean.inputDir', _, _, _, _, _, _, InputFilePropertyType.DIRECTORY)
    
            1 * visitor.visitOutputFileProperty('outputFile', false, { it.call().path == 'output' }, OutputFilePropertyType.FILE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTaskFactoryTest.groovy

            validateException(task, e, inputDoesNotExist {
                property('inputDir')
                    .dir(missingDir)
                    .includeLink()
            })
        }
    
        def validationActionFailsWhenInputDirectoryIsAFile() {
            given:
            def task = expectTaskCreated(TaskWithInputDir, existingFile)
            touch(task.inputDir)
    
            when:
            execute(task)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskExecutionResultCrossVersionSpec.groovy

            buildFile << """
                task incrementalTask(type: MyIncrementalTask) {
                    inputDir = file('src')
                }
    
                class MyIncrementalTask extends DefaultTask {
                    ${supportsInputChanges ? "@Incremental" : ""}
                    @InputDirectory
                    def File inputDir
                    @TaskAction
                    void doSomething(${parameterType} inputs) {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputIntegrationTest.groovy

                    inputDir = file("inputs")
                    inputFile = file("input.txt")
                    input = "This is the text"
                    outputDir = file("$buildDir/outputDir")
                    outputFile = file("$buildDir/outputFile")
                }
    
                abstract class MyTask extends DefaultTask {
                    @InputDirectory File inputDir
                    @Input String input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

        def "properly captures all attributes"() {
            given:
            withBuildCache()
            buildFile << """
                task customTask {
                    inputs.dir('foo')
                        .withPropertyName('inputDir')
                        .withPathSensitivity(PathSensitivity.$pathSensitivity)
                        .ignoreEmptyDirectories($ignoreEmptyDirectories)
                        .normalizeLineEndings($ignoreLineEndings)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

                        new File(outputDir, "source").text = "fixed"
                    }
                }
    
                task secondTask {
                    def inputDir = file("${outputDir}")
                    def outputDir = file("${sourceDir}")
                    inputs.dir(inputDir)
                    outputs.dir(outputDir)
                    doLast {
                        new File(outputDir, "source").text = "fixed"
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/custom_tasks.adoc

    ====
    [.multi-language-sample]
    =====
    [source,kotlin]
    .build.gradle.kts
    ----
    public class IncrementalReverseTask : DefaultTask() {
    
        @get:Incremental
        @get:InputDirectory
        val inputDir: DirectoryProperty = project.objects.directoryProperty()
    
        @get:OutputDirectory
        val outputDir: DirectoryProperty = project.objects.directoryProperty()
    
        @get:Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Feb 25 15:21:05 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top