Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of about 10,000 for FILE (0.05 sec)

  1. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/HierarchicalFileWatcherUpdaterTest.groovy

        }
    
        def "removes content on unsupported file systems at the end of the build"() {
            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:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 13:24:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInStaticGroovyIntegrationTest.groovy

                ProcessGroovyMethodsExecute.execute(["some", "string"])
                ProcessGroovyMethodsExecute.execute(["some", "string"], ["array"] as String[], file("test"))
                ProcessGroovyMethodsExecute.execute(["some", "string"], ["array"], file("test"))
    
                execute("some string")
                execute("some string", ["array"] as String[], file("test"))
                execute("some string", ["array"], file("test"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            then:
            file('dest').assertHasDescendants('path/file.txt')
            file('dest/path/file.txt').text == 'f1'
    
            when:
            run 'copy'
    
            then:
            skipped(':copy')
            file('dest').assertHasDescendants('path/file.txt')
            file('dest/path/file.txt').text == 'f1'
    
            when:
            file('dir1/path/file.txt').text = 'new'
            run 'copy'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java

        private List<File> listDirs(File distDir) {
            if (!distDir.exists()) {
                return emptyList();
            }
            File[] files = distDir.listFiles();
            if (files == null) {
                return emptyList();
            }
    
            List<File> dirs = new ArrayList<File>();
            for (File file : files) {
                if (file.isDirectory()) {
                    dirs.add(file);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top