Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getOutFile (0.41 sec)

  1. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/AbstractFilePropertyJavaInterOpIntegrationTest.groovy

                public class SomePlugin implements Plugin<Project> {
                    public void apply(Project project) {
                        project.getTasks().register("producer", ProducerTask.class, t -> {
                            t.getOutFile().set(project.getLayout().getBuildDirectory().file("intermediate.txt"));
                        });
                    }
                }
            """
            taskDefinition()
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ManagedFilePropertyJavaInterOpIntegrationTest.groovy

                public abstract class ProducerTask extends DefaultTask {
                    @OutputFile
                    public abstract RegularFileProperty getOutFile();
    
                    @TaskAction
                    public void run() throws IOException {
                        Files.write(getOutFile().get().getAsFile().toPath(), "content".getBytes());
                    }
                }
            """
    
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyJavaInterOpIntegrationTest.groovy

                    private final RegularFileProperty outFile = getProject().getObjects().fileProperty();
    
                    @OutputFile
                    public RegularFileProperty getOutFile() {
                        return outFile;
                    }
    
                    @TaskAction
                    public void run() throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ManagedFilePropertyGroovyInterOpIntegrationTest.groovy

                import ${TaskAction.name}
                import ${OutputFile.name}
    
                abstract class ProducerTask extends DefaultTask {
                    @OutputFile
                    abstract RegularFileProperty getOutFile()
    
                    @TaskAction
                    def run() {
                        outFile.get().asFile.text = "content"
                    }
                }
            """
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/AbstractFilePropertyGroovyInterOpIntegrationTest.groovy

                import ${RegularFileProperty.name}
                import ${OutputFile.name}
    
                interface Params {
                    @OutputFile
                    RegularFileProperty getOutFile()
                }
            """
            taskWithNestedBeanDefinition()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

                }
    
                abstract class InputFilesTask extends DefaultTask {
                    @InputFiles abstract ListProperty<FileSystemLocation> getInFiles()
                    @OutputFile abstract RegularFileProperty getOutFile()
                    @TaskAction def go() {
                        outFile.get().asFile.text = inFiles.get()*.asFile.name.sort().join(',')
                    }
                }
                task merge(type: InputFilesTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top