Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 65 for rootfile (0.24 sec)

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

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

                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        project.tasks.register("producer", ProducerTask) {
                            outFile = project.layout.buildDirectory.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)
  3. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FilePropertyKotlinInterOpIntegrationTest.groovy

                import ${OutputFile.name}
    
                open class ProducerTask: DefaultTask() {
                    @OutputFile
                    val outFile: RegularFileProperty = project.objects.fileProperty()
    
                    @TaskAction
                    fun run() {
                        outFile.get().asFile.writeText("content")
                    }
                }
            """
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/generate_workspace.txt

    go 1.22
    
    use ./mod
    -- mod/go.mod --
    module example.com/mod
    -- mod/gen.go --
    //go:generate go run gen.go got.txt
    
    package main
    
    import "os"
    
    func main() {
        outfile := os.Args[1]
        os.WriteFile(outfile, []byte("Hello World!\n"), 0644)
    }
    -- want.txt --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 19:39:24 UTC 2024
    - 437 bytes
    - Viewed (0)
  5. src/cmd/go/internal/bug/bug.go

    	srcfile := filepath.Join(tempdir, "go-bug.c")
    	outfile := filepath.Join(tempdir, "go-bug")
    	err := os.WriteFile(srcfile, src, 0644)
    	if err != nil {
    		return
    	}
    	defer os.Remove(srcfile)
    	cmd := exec.Command("gcc", "-o", outfile, srcfile)
    	if _, err = cmd.CombinedOutput(); err != nil {
    		return
    	}
    	defer os.Remove(outfile)
    
    	cmd = exec.Command("ldd", outfile)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/link/elf_test.go

    		t.Fatal(err)
    	}
    	outFile := filepath.Join(td, "issue51939.exe")
    	goTool := testenv.GoToolPath(t)
    	cmd := testenv.Command(t, goTool, "build", "-o", outFile, goFile)
    	if out, err := cmd.CombinedOutput(); err != nil {
    		t.Logf("%s", out)
    		t.Fatal(err)
    	}
    
    	ef, err := elf.Open(outFile)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, s := range ef.Sections {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

        }
    
        def "task is cacheable after previous failure"() {
            buildFile << """
                task foo {
                    def outFile = project.file("out.txt")
                    outputs.file(outFile)
                    outputs.cacheIf { true }
                    doLast {
                        outFile << "xxx"
                        if (System.getProperty("fail")) {
                            throw new RuntimeException("Boo!")
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

        def "task @InputFiles file collection closure is called once only when task executes"() {
            taskTypeWithInputFileCollection()
            buildFile """
                task merge(type: InputFilesTask) {
                    outFile = file("out.txt")
                    inFiles.from {
                        println("calculating value")
                        return 'in.txt'
                    }
                }
    """
            file("in.txt").text = "in"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ManagedFilePropertyGroovyInterOpIntegrationTest.groovy

                    @OutputFile
                    abstract RegularFileProperty getOutFile()
    
                    @TaskAction
                    def run() {
                        outFile.get().asFile.text = "content"
                    }
                }
            """
        }
    
        @Override
        void taskWithNestedBeanDefinition() {
            pluginDir.file("src/main/groovy/ProducerTask.groovy") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyHandlerProviderIntegrationTest.groovy

            }
    
            task resolve {
                inputs.files(configurations.conf)
                def outFile = file("out.txt")
                outputs.file(outFile)
                doLast {
                   outFile << 'Hello'
                }
            }
    
            checkDeps.dependsOn resolve
    
            """
    
            when:
            args '-Pproject.version=1.1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top