Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for taskTypeWithOutputDirectoryProperty (0.4 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformOfDirectoriesIntegrationTest.groovy

        @Issue("https://github.com/gradle/gradle/issues/15351")
        def "can transform a file dependency that contains a directory"() {
            taskTypeWithOutputDirectoryProperty()
            taskTypeLogsInputFileCollectionContent()
            transformDirectoryDependency()
    
            when:
            run("resolve")
    
            then:
            result.assertTaskExecuted(":producer")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyLifecycleIntegrationTest.groovy

            expect:
            succeeds("after")
            output.count("prop = " + file("build/text.out")) == 3
        }
    
        def "can query task output directory property at any time"() {
            taskTypeWithOutputDirectoryProperty()
            buildFile << """
                task producer(type: DirProducer) {
                    output = layout.buildDir.dir("dir.out")
                    names = ["a", "b"]
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  3. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/TasksWithInputsAndOutputs.groovy

                            file.delete()
                        } else {
                            file.writeText(content)
                        }
                    }
                }
            """
        }
    
        def taskTypeWithOutputDirectoryProperty(TestFile buildFile = getBuildFile()) {
            buildFile << """
                import javax.inject.Inject
    
                abstract class DirProducer extends DefaultTask {
                    @OutputDirectory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:39 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskDependencyInferenceIntegrationTest.groovy

            result.assertTasksExecuted(":a", ":b")
            file("out.txt").text == "1"
        }
    
        def "input file collection containing filtered tree of task output implies dependency on the task"() {
            taskTypeWithOutputDirectoryProperty()
            taskTypeWithInputFileCollection()
            buildFile << """
                def task = tasks.create("a", DirProducer) {
                    output = layout.buildDirectory.dir('dir')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:20:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformTestFixture.groovy

                } finally {
                    jarFile.close()
                }
            }
        }
    }
    """
            taskTypeWithOutputFileProperty(buildFile)
            taskTypeWithOutputDirectoryProperty(buildFile)
            taskTypeLogsArtifactCollectionDetails(buildFile)
        }
    
        /**
         * Asserts that exactly the given files where transformed by the 'simple' transforms below
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 15:06:39 UTC 2023
    - 21.7K bytes
    - Viewed (0)
Back to top