Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for inputDir (0.11 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            enableProblemsApiCheck()
            expectReindentedValidationMessage()
            file("input-file.txt").touch()
    
            def inputDir = file("input-dir")
            inputDir.createDir()
            buildFile """
                task test {
                    inputs.${method}({ "$path" }) withPropertyName "input"
                    doLast {}
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. cmd/signature-v4-utils_test.go

    	}
    }
    
    // TestSignV4TrimAll - tests the logic of TrimAll() function
    func TestSignV4TrimAll(t *testing.T) {
    	testCases := []struct {
    		// Input.
    		inputStr string
    		// Expected result.
    		result string
    	}{
    		{"本語", "本語"},
    		{" abc ", "abc"},
    		{" a b ", "a b"},
    		{"a b ", "a b"},
    		{"a  b", "a b"},
    		{"a   b", "a b"},
    		{"   a   b  c   ", "a b c"},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 05 21:26:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy

                            throw UncheckedException.throwAsUncheckedException(e)
                        }
                    }
    
                    static void unzipTo(File inputZip, File unzipDir) throws IOException {
                        inputZip.withInputStream { stream ->
                            ZipInputStream inputStream = new ZipInputStream(stream)
                            ZipEntry entry
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top