Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for src2 (0.07 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            ["src1", "src2"]| _             | _                 | "from() after convention honors it"           | { it.convention("src1"); it.from("src2") }
            ["src2"]        | _             | _                 | "from() before convention prevents it"        | { it.from("src2"); it.convention("src1") }
            ["src1", "src2"]| _             | ["src1"]          | "from() commits convention"                   | { it.from("src2"); it.unsetConvention() }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/files/fileCollections/groovy/build.gradle

    FileCollection collection = layout.files('src/file1.txt',
                                      new File('src/file2.txt'),
                                      ['src/file3.csv', 'src/file4.csv'],
                                      Paths.get('src', 'file5.txt'))
    // end::simple-params[]
    
    file('src').mkdirs()
    file('src/dir1').mkdirs()
    file('src/file1.txt').mkdirs()
    file('src2').mkdirs()
    file('src2/dir1').mkdirs()
    file('src2/dir2').mkdirs()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/files/fileCollections/kotlin/build.gradle.kts

    // tag::simple-params[]
    val collection: FileCollection = layout.files(
        "src/file1.txt",
        File("src/file2.txt"),
        listOf("src/file3.csv", "src/file4.csv"),
        Paths.get("src", "file5.txt")
    )
    // end::simple-params[]
    
    file("src").mkdirs()
    file("src/dir1").mkdirs()
    file("src/file1.txt").mkdirs()
    file("src2").mkdirs()
    file("src2/dir1").mkdirs()
    file("src2/dir2").mkdirs()
    
    // tag::closure[]
    tasks.register("list") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 15 13:55:00 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/native/tooling-native/src/crossVersionTest/groovy/org/gradle/language/cpp/tooling/r52/CppModelCrossVersionSpec.groovy

                    targetMachines = [machines.host().x86, machines.host().x86_64]
                }
            """
            def headerDir = file('src/main/headers')
            def apiHeaderDir = file('src/main/public')
            def src1 = file('src/main/cpp/lib.cpp').createFile()
            def src2 = file('src/main/cpp/lib-impl.cpp').createFile()
    
            when:
            def project = withConnection { connection -> connection.getModel(CppProject.class) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. platforms/native/tooling-native/src/crossVersionTest/groovy/org/gradle/language/cpp/tooling/r410/CppModelCrossVersionSpec.groovy

            """
            buildFile << """
                apply plugin: 'cpp-library'
            """
            def headerDir = file('src/main/headers')
            def apiHeaderDir = file('src/main/public')
            def src1 = file('src/main/cpp/lib.cpp').createFile()
            def src2 = file('src/main/cpp/lib-impl.cpp').createFile()
    
            when:
            def project = withConnection { connection -> connection.getModel(CppProject.class) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/files/fileCollections/tests/fileCollectionsConventions.out

    Source dirs: [src, src2]...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 13:03:07 UTC 2024
    - 25 bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

                        new File(srcDir, "src2.txt").text = "123"
                    }
                }
                task transform2(type: DirTransformerTask) {
                    mustRunAfter src1, src2
                    inputDir = srcDir
                    outputDir = file("out-2")
                }
    """
    
            when:
            run "src1", "transform1", "src2", "transform2"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. src/go/types/issues_test.go

    			t.Fatalf("%s: got %v; want package types", test, pkg)
    		}
    	}
    
    	f("src0", src0)
    	f("src1", src1)
    	f("src2", src2)
    }
    
    func TestIssue22525(t *testing.T) {
    	const src = `package p; func f() { var a, b, c, d, e int }`
    
    	got := "\n"
    	conf := Config{Error: func(err error) { got += err.Error() + "\n" }}
    	typecheck(src, &conf, nil) // do not crash
    	want := "\n" +
    		"p:1:27: declared and not used: a\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/issues_test.go

    			t.Fatalf("%s: got %v; want package types2", test, pkg)
    		}
    	}
    
    	f("src0", src0)
    	f("src1", src1)
    	f("src2", src2)
    }
    
    func TestIssue22525(t *testing.T) {
    	const src = `package p; func f() { var a, b, c, d, e int }`
    
    	got := "\n"
    	conf := Config{Error: func(err error) { got += err.Error() + "\n" }}
    	typecheck(src, &conf, nil) // do not crash
    	want := "\n" +
    		"p:1:27: declared and not used: a\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    var nopos syntax.Pos
    
    func mustParse(src string) *syntax.File {
    	f, err := syntax.Parse(syntax.NewFileBase(pkgName(src)), strings.NewReader(src), nil, nil, 0)
    	if err != nil {
    		panic(err) // so we don't need to pass *testing.T
    	}
    	return f
    }
    
    func typecheck(src string, conf *Config, info *Info) (*Package, error) {
    	f := mustParse(src)
    	if conf == nil {
    		conf = &Config{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top