Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for minutes (1.28 sec)

  1. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/TaskUpToDateIntegrationTest.groovy

                    @TaskAction def exec() {
                        output.text = duration.toString()
                    }
                }
    
                task myTask(type: MyTask) {
                    duration = Duration.ofMinutes(1)
                    output = project.file("build/output.txt")
                }
            """
    
            when:
            run ':myTask'
    
            then:
            executedAndNotSkipped ':myTask'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

            given:
            file('files/a/one.txt').createFile()
            file('files/b/two.txt').createFile()
            buildFile """
                def files = files('files/a', 'files/b').minus(files('files/b'))
                task copy(type: Copy) {
                    from files
                    into 'dest'
                }
            """
    
            when:
            run 'copy'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileTreeIntegrationTest.groovy

            given:
            file('files/one.txt').createFile()
            file('files/a/two.txt').createFile()
            file('files/b/ignore.txt').createFile()
            buildFile """
                def files = fileTree(dir: 'files').minus(fileTree(dir: 'files/b'))
                task copy(type: Copy) {
                    from files
                    into 'dest'
                }
            """
    
            when:
            run 'copy'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/AbstractFileCollectionTest.groovy

            TestFileCollection collection1 = new TestFileCollection(file1, file2)
            TestFileCollection collection2 = new TestFileCollection(file2, file3)
    
            when:
            FileCollection difference = collection1.minus(collection2)
    
            then:
            difference.files == toLinkedSet(file1)
        }
    
        def "can subtract a collections using - operator"() {
            File file1 = new File("f1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top