Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for createFile2 (0.38 sec)

  1. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/CommandLineJavaCompilerArgumentsGeneratorTest.groovy

           return tempDir.testDirectory.file(JavaCompilerArgumentsBuilder.EMPTY_SOURCE_PATH_REF_DIR).absolutePath
        }
    
        def createCompileSpec(numFiles) {
            def sources = createFiles(numFiles)
            def classpath = createFiles(numFiles)
            def spec = new DefaultJavaCompileSpec()
            spec.compileOptions = TestUtil.newInstance(CompileOptions, TestUtil.objectFactory())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/os/stat_windows.go

    		// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew#consoles.
    		// We haven't set it previously because it is normally not required
    		// to read attributes and some files may not allow it.
    		h, err = syscall.CreateFile(namep, syscall.GENERIC_READ, 0, nil, syscall.OPEN_EXISTING, flags, 0)
    	}
    	if err != nil {
    		// Since CreateFile failed, we can't determine whether name refers to a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileTreeIntegrationTest.groovy

            given:
            file('files/one.txt').createFile()
            file('files/a/two.txt').createFile()
            file('files/a/IGNORE.txt').createFile()
            file('files/b/ignore.txt').createFile()
            file('files/b/one.bin').createFile()
            file('files/b/wrong case.TXT').createFile()
            file('other/c/other-one.txt').createFile()
            file('other/c/other-ignore.txt').createFile()
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/cpp/internal/DefaultCppComponentTest.groovy

            def f3 = d.createFile("c.cc")
            d.createFile("ignore.txt")
            d.createFile("other/ignore.txt")
    
            expect:
            component.source.from(d)
            component.cppSource.files == [f1, f2, f3] as Set
        }
    
        def "uses source layout convention when no other source files specified"() {
            def f1 = tmpDir.createFile("src/main/cpp/a.cpp")
            def f2 = tmpDir.createFile("src/main/cpp/nested/b.cpp")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/ConfigurableFileTreeIntegrationTest.groovy

            given:
            file('files/one.txt').createFile()
            file('files/a/one.txt').createFile()
            file('files/a/not ONE.txt').createFile()
            file('files/b/ignore.txt').createFile()
            file('files/b/not one to IGNORE.txt').createFile()
            file('files/b/one.ignore').createFile()
            buildFile """
                def files = fileTree(dir: 'files')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/FlatDirResolveIntegrationTest.groovy

            given:
            file("repo/a.jar").createFile()
            file("repo/a-1.4.jar").createFile()
            file("repo/a-1.5.jar").createFile()
            file("repo/a-2.0.jar").createFile()
            file("repo/b-1.4-classifier.jar").createFile()
            file("repo/b-1.5-classifier.jar").createFile()
            file("repo/b-1.6.jar").createFile()
    
            and:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/swift/internal/DefaultSwiftComponentTest.groovy

            d.createFile("other/ignore.txt")
    
            expect:
            component.source.from(d)
            component.swiftSource.files == [f1, f2] as Set
        }
    
        def "uses source layout convention when no other source files specified"() {
            def f1 = tmpDir.createFile("src/main/swift/a.swift")
            def f2 = tmpDir.createFile("src/main/swift/nested/b.swift")
            tmpDir.createFile("src/main/swift/ignore-me.cpp")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/resource/local/DefaultPathKeyFileStoreTest.groovy

            when:
            store.move("a", createFile("abc"))
            store.move("a", createFile("def"))
    
            then:
            fsBase.file("a").text == "def"
        }
    
        def "creates intermediary directories"() {
            when:
            store.move("a/b/c", createFile("abc"))
            store.move("a/b/d", createFile("abd"))
            store.move("a/c/a", createFile("aca"))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 20 09:57:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/mutator/ClearArtifactTransformCacheWithoutInstrumentedJarsMutatorTest.groovy

            createFile(new File(cachesDir, "transforms-1/first/transformed/file"))
            createFile(new File(cachesDir, "transforms-1/first/metadata.bin"))
            createFile(new File(cachesDir, "transforms-1/first/transformed/instrumented/file"))
            createFile(new File(cachesDir, "transforms-1/second/transformed/original/file"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 12:30:06 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/test/groovy/org/gradle/language/cpp/internal/DefaultCppLibraryTest.groovy

            def d1 = tmpDir.createDir("d1")
            def f1 = d1.createFile("a.h")
            def f2 = d1.createFile("nested/b.h")
            d1.createFile("ignore-me.cpp")
            def f3 = tmpDir.createFile("src/main/public/c.h")
            def f4 = tmpDir.createFile("src/main/headers/c.h")
            tmpDir.createFile("src/main/headers/ignore.cpp")
            tmpDir.createFile("src/main/public/ignore.cpp")
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top