- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of about 10,000 for FILE (0.07 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultFileOperationsTest.groovy
when: TestFile file = expectPathResolved('path') then: fileOperations.file('path') == file } def resolvesFileWithValidation() { TestFile file = tmpDir.file('path') resolver.resolve('path', PathValidation.EXISTS) >> file expect: fileOperations.file('path', PathValidation.EXISTS) == file } def resolvesURI() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 15:15:04 UTC 2024 - 8.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/util/GFileUtils.java
* @param file to read * @return content of the file or the problem description in case file cannot be read. */ public static String readFileQuietly(File file) { try { return readFile(file); } catch (Exception e) { return "Unable to read file '" + file + "' due to: " + e.toString(); } } public static void writeFile(String content, File destination) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 13.9K bytes - Viewed (0) -
platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java
File file = new File(tempDirFile, "file-" + counter.incrementAndGet()); boolean created = file.createNewFile(); blackhole.consume(created); } @Benchmark public void createFileJava7(Blackhole blackhole) throws IOException { Path file = Files.createFile(tempDirPath.resolve("file-" + counter.incrementAndGet())); blackhole.consume(file);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 12:13:32 UTC 2024 - 7.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy
given: def dir = testDir.file("thing.dir") classesDir(dir) def file = testDir.file("thing.jar") jar(file) def dir2 = testDir.file("thing2.dir") classesDir(dir2) def file2 = testDir.file("thing2.jar") jar(file2) def dir3 = testDir.file("thing3.dir") classesDir(dir3) def file3 = testDir.file("thing3.jar") jar(file3)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 20.8K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy
createParameterizedTransformWithSensitivity(DirectorySensitivity.DEFAULT) file('augmented').mkdir() file('augmented/a').mkdir() file('augmented/b').mkdir() file('augmented/b/b1').createFile() file('bar/foo').mkdir() file('bar/foo/c').mkdir() file('bar/foo/d').mkdir() file('bar/foo/d1').createFile() when: execute('showTransformedFiles')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 20 11:16:24 UTC 2024 - 18.4K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 67.9K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001.py
assert response.status_code == 200, response.text assert response.json() == {"file_size": 14} def test_post_large_file(tmp_path): default_pydantic_max_size = 2**16 path = tmp_path / "test.txt" path.write_bytes(b"x" * (default_pydantic_max_size + 1)) client = TestClient(app) with path.open("rb") as file: response = client.post("/files/", files={"file": file})
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.7K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GFileUtilsTest.groovy
def original = file.makeOlder().lastModified() when: touch(file) then: file.file file.lastModified() > original file.length() == 0 } def "does not use fallback for touching non-empty files"() { given: def fileAttributeView = Stub(BasicFileAttributeView) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 10:50:51 UTC 2024 - 6.1K bytes - Viewed (0) -
platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy
def file = tmpDir.file("file") file.text = "123" def link = tmpDir.file("link") link.createLink(file) def linkToLink = tmpDir.file("linkToLink") linkToLink.createLink(link) expect: def stat = accessor.stat(linkToLink) stat.type == FileType.RegularFile assertSameLastModified(stat, file) stat.length == 3
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:50:56 UTC 2024 - 6.9K bytes - Viewed (0)