Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for RegularFileProperty (0.7 sec)

  1. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/GradleLazyType.java

        FILE_COLLECTION("org.gradle.api.file.FileCollection"),
        DIRECTORY_PROPERTY("org.gradle.api.file.DirectoryProperty"),
        REGULAR_FILE_PROPERTY("org.gradle.api.file.RegularFileProperty"),
        LIST_PROPERTY("org.gradle.api.provider.ListProperty"),
        SET_PROPERTY("org.gradle.api.provider.SetProperty"),
        MAP_PROPERTY("org.gradle.api.provider.MapProperty"),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInputListenerLifecycleIntegrationTest.groovy

            buildFile("""
                abstract class MyTask extends DefaultTask {
                    @Input
                    abstract Property<String> getMyProperty();
    
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    @TaskAction
                    void doWork() {
                        getOutputFile().asFile.get().write(getMyProperty().get())
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleSupportedTypesIntegrationTest.groovy

            "DirectoryProperty"           | "objects.directoryProperty()"         | "(File) null"        | "null"
            "RegularFileProperty"         | "objects.fileProperty()"              | "file('abc')"        | new File('abc')
            "RegularFileProperty"         | "objects.fileProperty()"              | "(File) null"        | "null"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:40:52 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

                    archiveFile = file('test.tar')
                    destinationDir = file('build/extract')
                }
                interface ExtracterParameters extends WorkParameters {
                    RegularFileProperty getArchiveFile()
                    DirectoryProperty getDestinationDir()
                    Property<Integer> getIndex()
                }
                abstract class Extracter implements WorkAction<ExtracterParameters> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTaskExecutionIntegrationTest.groovy

            }
        }
    
        def "honors task up-to-date spec"() {
            buildFile << """
                abstract class TaskWithComplexInputs extends DefaultTask {
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    TaskWithComplexInputs() {
                        def result = name == "never"
                        outputs.upToDateWhen { !result }
                    }
    
                    @TaskAction
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

        def "does not resolve mapped property at configuration time"() {
            buildFile """
                abstract class Producer extends DefaultTask {
                    @OutputFile
                    abstract RegularFileProperty getOutput()
    
                    @TaskAction
                    def action() {
                        def outputFile = output.get().asFile
                        outputFile.write("some text")
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaToolchainBuildOperationsIntegrationTest.groovy

                abstract class ToolchainTask extends DefaultTask {
                    @Nested
                    abstract Property<JavaLauncher> getLauncher1()
                    @OutputFile
                    abstract RegularFileProperty getOutputFile()
    
                    @TaskAction
                    void myAction() {
                        def output = outputFile.get().asFile
                        output << launcher1.get().executablePath
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 06:42:07 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/provider/Provider.java

         * class Producer extends DefaultTask {
         *     {@literal @}OutputFile
         *     abstract RegularFileProperty getOutputFile()
         *
         *     //irrelevant details omitted
         * }
         *
         * class Consumer extends DefaultTask {
         *     {@literal @}InputFile
         *     abstract RegularFileProperty getInputFile()
         *
         *     //irrelevant details omitted
         * }
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 09:14:21 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    public abstract class GenerateReportTask extends DefaultTask {
    
        @InputDirectory
        File sourceDirectory
    
    }
    ----
    =====
    ====
    
    Similarly, for the output, we use a `RegularFileProperty` and annotate it with `@OutputFile`.
    
    ====
    [.multi-language-sample]
    =====
    .buildSrc/src/main/kotlin/GenerateReportTask.kt
    [source,kotlin]
    ----
    import org.gradle.api.DefaultTask
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

            buildFile << """
                abstract class MyTask extends DefaultTask {
                    @Internal abstract DirectoryProperty getFoo()
                    @Internal abstract RegularFileProperty getBar()
    
                    @TaskAction
                    void useIt() {
                        assert foo.asFile.get().name == "foo"
                        assert bar.asFile.get().name == "bar"
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top