Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 303 for createFile1 (0.22 sec)

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

            long minimumTimestamp = (System.currentTimeMillis() / 1000 * 1000) - 2000
            def file1 = rootDir.createFile("a/b/1.txt")
            file1 << '12345'
            def file2 = rootDir.createFile("a/b/2.txt")
            file2 << '12345'
            def file3 = rootDir.createFile("a/b/3.txt")
            file3 << '12345'
            def fileTree = new DirectoryFileTree(rootDir, new PatternSet(), TestFiles.fileSystem(), false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheCleanupIntegrationTest.groovy

        }
    
        private TestFile createCacheEntryDir(String entry) {
            TestFile dir = cacheDir.createDir(entry)
            dir.createFile("state.bin")
            dir.createFile("fingerprint.bin")
            return dir
        }
    
        private TestFile getGcFile() {
            return cacheDir.file("gc.properties")
        }
    
        private TestFile getCacheDir() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy

            long lastCleanupCheck = initializeHome()
    
            when:
            def newTrashFile = temporaryFolder.file("0" * hashStringLength).createFile()
            def oldTrashFile = temporaryFolder.file("1" * hashStringLength).createFile()
            createBuildCacheEntry("0" * hashStringLength, newTrashFile, System.currentTimeMillis())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/internal/jvm/inspection/DefaultJavaInstallationRegistryTest.groovy

            def jdkHome = temporaryFolder.createDir("jdk")
            def binDir = jdkHome.createDir("bin")
            binDir.createFile(OperatingSystem.LINUX.getExecutableName("java"))
    
            // Make it look like a macOS installation
            def macOsJdkHomeBinDir = jdkHome.createDir("Contents/Home/bin")
            macOsJdkHomeBinDir.createFile(OperatingSystem.LINUX.getExecutableName("java"))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:46:10 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. platforms/jvm/ear/src/integTest/groovy/org/gradle/plugins/ear/EarPluginIntegrationTest.groovy

      <application-name>customear</application-name>
    </application>
    """
    
            file("${appDirectory}/META-INF/application.xml").createFile().write(applicationXml)
            file("${appDirectory}/someOtherFile.txt").createFile()
            file("${appDirectory}/META-INF/stuff/yetAnotherFile.txt").createFile()
            buildFile << """
    apply plugin: 'ear'
    
    ear {
        ${descriptorConfig}
        deploymentDescriptor {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivecpp/tasks/ObjectiveCppCompileTest.groovy

            pch.includeString >> "header"
            pch.prefixHeaderFile >> temporaryFolder.file("prefixHeader").createFile()
            pch.objectFile >> temporaryFolder.file("pchObjectFile").createFile()
            pch.pchObjects >> TestFiles.empty()
            1 * objCppCompiler.execute({ ObjectiveCppCompileSpec spec ->
                assert spec.sourceFiles*.name == ["sourceFile"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/MavenToolchainsInstallationSupplierTest.groovy

        }
    
        def "ignores toolchains with external xml entities"(boolean useProperty) {
            given:
            def externalFile = temporaryFolder.file('external.txt').createFile()
            def toolchains = mavenHome.createFile("toolchains.xml")
            toolchains << """
            <!DOCTYPE data [
              <!ENTITY file SYSTEM "file://${normaliseFileSeparators(externalFile.absolutePath)}">
            ]>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/PCHUtilsTest.groovy

            given:
            def tempDir = tmpDirProvider.createDir("temp")
            def objectDir = tmpDirProvider.createDir("pch")
            def prefixFile = tempDir.createFile("header.h")
            def objectFile = tempDir.createFile("header.o")
            prefixFile << "#include <stdio.h>"
            objectFile << "some content"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatisticsTest.groovy

        def "can visit directory hierarchy"() {
            given:
            def root = tmpDir.createDir("root")
            def subDir1 = root.createDir("sub-dir-1")
            subDir1.createFile("file.txt")
            def subDir2 = root.createDir("sub-dir-2")
            subDir2.createFile("file.txt")
    
            when:
            snapshot(root)
    
            then:
            1 * statisticsCollector.recordVisitHierarchy()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/nio/ModificationTimeFileAccessTimeJournalTest.groovy

        def "updates modification time"() {
            given:
            def file = tmpDir.createFile("file")
    
            when:
            journal.setLastAccessTime(file, FIXED_TIMESTAMP)
    
            then:
            file.lastModified() == FIXED_TIMESTAMP
        }
    
        def "reads modification time"() {
            given:
            def file = tmpDir.createFile("file")
            file.lastModified = FIXED_TIMESTAMP
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top