Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 356 for createRule (0.18 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/caching/internal/packaging/BuildCacheEntryPackingIntegrationTest.groovy

            when:
            withBuildCache().run("createFile", "-Dfile.encoding=$fileEncoding")
            then:
            output.contains("> Default charset: $fileEncoding")
            executedAndNotSkipped(":createFile")
    
            when:
            assert outputFile.delete()
            withBuildCache().run("createFile", "-Dfile.encoding=$fileEncoding")
            skipped(":createFile")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/SyncCopyActionDecoratorTest.groovy

            given:
            file("src").with {
                createFile("subdir/included.txt")
                createFile("included.txt")
            }
    
            file("dest").with {
                createFile("subdir/included.txt")
                createFile("subdir/extra.txt")
                createFile("included.txt")
                createFile("extra.txt")
                createDir("extra")
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 20 13:25:37 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/OutputSnapshotUtilTest.groovy

            outputDir.file("outputOfOther").createFile()
            def beforeExecution = snapshotOutput(outputDir)
    
            when:
            def filteredOutputs = filterOutputAfterExecution(EMPTY, beforeExecution, beforeExecution)
            then:
            collectFiles(filteredOutputs) == [outputDir]
    
            when:
            def outputOfCurrent = outputDir.file("outputOfCurrent").createFile()
            def afterExecution = snapshotOutput(outputDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/test/groovy/org/gradle/language/base/internal/tasks/StaleOutputCleanerTest.groovy

            def file1 = tmpDir.file('file1').createFile()
            def file2 = tmpDir.file('file2').createFile()
    
            expect:
            StaleOutputCleaner.cleanOutputs(deleter, files(file1, file2), tmpDir.testDirectory)
            !file1.exists()
            !file2.exists()
        }
    
        def "deletes empty parent directories"() {
            def file1 = tmpDir.file('foo/bar/file1').createFile()
            tmpDir.file('foo/baz/file2').createFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/options/tracing_test.go

    		name           string
    		contents       string
    		createFile     bool
    		expectedResult *tracingapi.TracingConfiguration
    		expectedError  *string
    	}{
    		{
    			name:           "empty",
    			createFile:     true,
    			contents:       ``,
    			expectedResult: &tracingapi.TracingConfiguration{},
    			expectedError:  nil,
    		},
    		{
    			name:           "absent",
    			createFile:     false,
    			contents:       ``,
    			expectedResult: nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/FileSystemSnapshotFilterTest.groovy

            def root = temporaryFolder.createDir("root")
            root.createFile("rootFile1")
            def dir1 = root.createDir("dir1")
            def dirFile1 = dir1.createFile("dirFile1")
            def dirFile2 = dir1.createFile("dirFile2")
            def rootFile2 = root.createFile("rootFile2")
            def subdir = dir1.createDir("subdir")
            def subdirFile1 = subdir.createFile("subdirFile1")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/internal/cache/CacheConfigurationsCompositeBuildTest.groovy

            def initDir = gradleUserHomeDir.createDir('init.d')
            initDir.createFile('broken.gradle') << """
                throw new Exception('BOOM!')
            """
    
            file('foo').createDir().createFile('settings.gradle')
            file('bar').createDir().createFile('settings.gradle')
            settingsFile << """
                includeBuild('foo')
                includeBuild('bar')
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 20:02:29 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

                    outputFile = project.file("\${buildDir}/output.txt")
                }
            """
            file('foo').mkdir()
            file('foo/a').createFile()
            file('foo/b').createFile()
            file('bar').mkdir()
            file('bar/a').createFile()
    
            when:
            execute("taskWithInputs")
    
            then:
            executedAndNotSkipped(":taskWithInputs")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/GradlePluginIntegrationTest.groovy

            setup:
            def externalInitFile = temporaryFolder.createFile("initscripts/path1/anInit.gradle")
            externalInitFile << """
                buildFinished {
                    println "Gradle Plugin received build finished!"
                }
            """
            def anotherExternalInitFile = temporaryFolder.createFile("initscripts/path2/anotherInit.gradle")
            anotherExternalInitFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:31:11 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  10. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/SingleDepthFilesFinderTest.groovy

        def "finds files for depth #depth"() {
            given:
            tmpDir.file("a/aa/aaa").createFile("1")
            tmpDir.file("a/aa/aaa").createFile("2")
            tmpDir.file("b/bb/bbb").createFile("3")
            tmpDir.file("b/bb/bbb").createFile("4")
    
            when:
            def result = new SingleDepthFilesFinder(depth).find(tmpDir.getTestDirectory(), { true })
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top