Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for someFile (0.6 sec)

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

                name >> "SomeFile.java"
            }
            diagnostic.lineNumber >> 1
            diagnostic.columnNumber | diagnostic.startPosition | diagnostic.endPosition >> Diagnostic.NOPOS
    
            when:
            diagnosticToProblemListener.buildProblem(diagnostic, spec)
    
            then:
            1 * spec.fileLocation("SomeFile.java")
            1 * spec.lineInFileLocation("SomeFile.java", 1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 13:58:13 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/locking/ExclusiveFileAccessManagerTest.groovy

            when:
            manager.access(fileWithSameNameAsDirectory.file('someFile.zip')) {
            }
    
            then:
            RuntimeException e = thrown()
            e.message == "Could not create parent directory for lock file ${fileWithSameNameAsDirectory.file('someFile.zip.lck').absolutePath}"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:52:53 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            TestFile dir = tmpDir.getTestDirectory()
            dir.file("someFile").createFile()
    
            when:
            boolean didWork = deleter.deleteRecursively(dir)
    
            then:
            dir.assertDoesNotExist()
            didWork
        }
    
        def "deletes file"() {
            given:
            TestFile dir = tmpDir.getTestDirectory()
            TestFile file = dir.file("someFile")
            file.createFile()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/verification/serializer/DependencyVerificationsXmlWriterTest.groovy

                addTrustedArtifact("group", "module", "1.0", null, true)
                addTrustedArtifact("group", "module", "1.1", "somefile.jar", false)
                addTrustedArtifact("group2", "module2", "1.2", "somefile.jar", true)
                addTrustedArtifact(null, "module2", null, "somefile.jar", true)
            }
            serialize()
    
            then:
            contents == """<?xml version="1.0" encoding="UTF-8"?>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 13:40:00 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  5. 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)
  6. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractTaskSubclassingBinaryCompatibilityCrossVersionSpec.groovy

    }
    
    apply plugin: SomePlugin
    """
        }
    
        protected void prepareMethodUseTest(GradleVersion targetVersion) {
            file("someFile").touch()
            file("anotherFile").touch()
            file("yetAnotherFile").touch()
            file("someDir").createDir()
    
            def apiDepConf = "implementation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r33/IncompatibilityCrossVersionSpec.groovy

                import org.gradle.api.*;
                import org.gradle.api.tasks.*;
    
                public class MyTask extends DefaultTask {
                    public MyTask() {
                        getInputs().file("somefile");
                        getInputs().files("afile", "anotherfile");
                        getInputs().dir("someDir");
                        getInputs();
                        getOutputs();
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    🖼, <a href="https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files" class="external-link" target="_blank">👆 💪 ⚙️ `with` ✍ 📁</a>:
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    🔘, `open("./somefile.txt")` ✍ 🎚 👈 🤙 "🔑 👨‍💼".
    
    🕐❔ `with` 🍫 🏁, ⚫️ ⚒ 💭 🔐 📁, 🚥 📤 ⚠.
    
    🕐❔ 👆 ✍ 🔗 ⏮️ `yield`, **FastAPI** 🔜 🔘 🗜 ⚫️ 🔑 👨‍💼, &amp; 🌀 ⚫️ ⏮️ 🎏 🔗 🧰.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdaterTest.groovy

            def fileInWatchableHierarchies = file("first/inside/root/dir/file.txt")
            def fileOutsideOfWatchableHierarchies = file("forth").file("someFile.txt")
    
            when:
            registerWatchableHierarchies(watchableHierarchies)
            then:
            0 * _
    
            when:
            fileInWatchableHierarchies.createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/plugins/NativeComponentModelPluginTest.groovy

                    exe(NativeExecutableSpec)
                }
            }
    
            then:
            getComponents()
        }
    
        static class RootFileRules extends RuleSource {
            @Model
            File someFile(@Path("buildDir") File buildDir) { return new File(buildDir, "something") }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top