Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for inputDir (0.12 sec)

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

        }
    
        def "SkipWhenEmpty does not skip for #description"() {
            def inputDirectory = file("inputDir").createDir()
            inputDirectory.file("inputFile").createFile()
            def inputZip = file("inputZip.zip")
            def inputTar = file("inputTar.tar")
            inputDirectory.zipTo(inputZip)
            inputDirectory.tarTo(inputTar)
            buildFile << sourceTask
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 23 15:09:05 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/tasks/incrementalTask/kotlin/build.gradle.kts

    tasks.register("originalInputs") {
        val inputsDir = layout.projectDirectory.dir("inputs")
        outputs.dir(inputsDir)
        doLast {
            inputsDir.file("1.txt").asFile.writeText("Content for file 1.")
            inputsDir.file("2.txt").asFile.writeText("Content for file 2.")
            inputsDir.file("3.txt").asFile.writeText("Content for file 3.")
        }
    }
    
    // tag::updated-inputs[]
    tasks.register("updateInputs") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/test/groovy/org/gradle/language/assembler/tasks/AssemblerTest.groovy

        def "executes using the Assembler"() {
            def inputDir = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            assembleTask.toolChain = toolChain
            assembleTask.targetPlatform = platform
            assembleTask.assemblerArgs = ["arg"]
            assembleTask.objectFileDir = temporaryFolder.file("outputFile")
            assembleTask.source inputDir
            execute(assembleTask)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/file/TaskFilePropertiesIntegrationTest.groovy

                    @InputDirectory
                    Path inputDir
                    @OutputFile
                    Path outputFile
                    @OutputDirectory
                    Path outputDir
    
                    @TaskAction
                    def go() {
                        outputFile.toFile().text = inputFile.toFile().text
                        inputDir.toFile().listFiles().each { f -> outputDir.resolve(f.name).toFile().text = f.text }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/tasks/incrementalTask/groovy/build.gradle

    tasks.register('originalInputs') {
        def inputsDir = layout.projectDirectory.dir('inputs')
        outputs.dir(inputsDir)
        doLast {
            inputsDir.file('1.txt').asFile.text = 'Content for file 1.'
            inputsDir.file('2.txt').asFile.text = 'Content for file 2.'
            inputsDir.file('3.txt').asFile.text = 'Content for file 3.'
        }
    }
    
    // tag::updated-inputs[]
    tasks.register('updateInputs') {
        def inputsDir = layout.projectDirectory.dir('inputs')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.4K 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. subprojects/core-api/src/main/java/org/gradle/work/InputChanges.java

     *
     *     {@literal @}OutputDirectory
     *     abstract DirectoryProperty getOutputDir()
     *
     *     {@literal @}TaskAction
     *     void execute(InputChanges inputChanges) {
     *         inputChanges.getFileChanges(inputDir).each { change -&gt;
     *             if (change.fileType == FileType.DIRECTORY) return
     *
     *             def targetFile = outputDir.file(change.normalizedPath).get().asFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 26 09:19:43 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/UpToDateIntegTest.groovy

                        task.inputFiles = originalPropertyValue
                    }
                }
            """
            def inputDir1 = file("input1").createDir()
            def inputDir2 = file("input2").createDir()
            def inputFileName = "inputFile.txt"
            def inputFile = inputDir1.file(inputFileName)
            inputFile.text = "input"
    
            when:
            run "customTask"
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 13 12:00:09 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/converter/KatakanaConverter.java

            readingList.add(toKatakana(text));
            return readingList;
        }
    
        protected String toKatakana(final String inputStr) throws IOException {
            final StringBuilder kanaBuf = new StringBuilder();
    
            final Reader rd = new StringReader(inputStr);
            try (TokenStream stream = createTokenStream(rd)) {
                if (stream == null) {
                    throw new IOException("Invalid tokenizer.");
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/ApacheDirectoryListingParserTest.groovy

            urls.isEmpty()
        }
    
        def "addTrailingSlashes adds trailing slashes on relative URL if not exist"() {
            expect:
            new URI(resultingURI) == parser.addTrailingSlashes(new URI(inputURI))
            where:
            inputURI                     | resultingURI
            "http://testrepo"            | "http://testrepo/"
            "http://testrepo/"           | "http://testrepo/"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top