Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 119 for createFile2 (0.3 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/ContinuousBuildChangeReportingIntegrationTest.groovy

            inputFiles.each { it.createFile() }
            def newfile1 = inputDir.file("input12.txt")
            def newfile2 = inputDir.file("input13.txt")
    
            when:
            succeeds("theTask")
            newfile1.createFile()
            inputFiles[2].text = 'Modified file'
            inputFiles[7].delete()
            newfile2.createFile()
    
            then:
            buildTriggeredAndSucceeded()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            def watchableHierarchy = file("watchable").createDir()
            def fileOutsideOfWatchableHierarchy = file("outside").file("someFile.txt").createFile()
            def fileInDirectoryIgnoredForWatching = file("cache/some-cache/someFile.txt").createFile()
            ignoredForWatching.add(fileInDirectoryIgnoredForWatching.absolutePath)
    
            when:
            registerWatchableHierarchies([watchableHierarchy])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def "can apply ContentAndMetadataAction to file contents"() {
            def file = tmpDir.createFile("content")
            file.text = "1234"
    
            expect:
            def resource = new LocalFileStandInExternalResource(file, TestFiles.fileSystem())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  4. 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)
  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/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)
  7. staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go

    		name           string
    		contents       string
    		createFile     bool
    		expectedResult *apiserver.EgressSelectorConfiguration
    		expectedError  *string
    	}{
    		{
    			name:           "empty",
    			createFile:     true,
    			contents:       ``,
    			expectedResult: nil,
    			expectedError:  strptr("invalid service configuration object \"\""),
    		},
    		{
    			name:           "absent",
    			createFile:     false,
    			contents:       ``,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/WindowsKitWindowsSdkLocatorTest.groovy

        }
    
        def kitDir(String name, String... versions) {
            def dir = tmpDir.createDir(name)
            PLATFORMS.each { dir.createFile("bin/${it}/rc.exe") }
            versions.each { version ->
                dir.createFile("Include/${version}/um/windows.h")
                PLATFORMS.each { dir.createFile("Lib/${version}/um/${it}/kernel32.lib") }
            }
            return dir
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

                fileCollection.from(sourceDirs.srcDirTrees)
                println("files = \${fileCollection.files.name.sort()}")
            """
    
            given:
            file("dir1/file1").createFile()
            file("dir1/file2").createFile()
            file("dir2/sub/file3").createFile()
    
            expect:
            succeeds()
            outputContains("files = [file1, file2, file3]")
        }
    
        def "can view the elements of file collection as a Provider"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy

            def watchableHierarchy = file("watchable").createDir()
            def watchableContent = watchableHierarchy.file("some/dir/file.txt").createFile()
            def unsupportedFileSystemMountPoint = watchableHierarchy.file("unsupported")
            def unwatchableContent = unsupportedFileSystemMountPoint.file("some/file.txt").createFile()
    
            when:
            registerWatchableHierarchies([watchableHierarchy])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top