Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 8,738 for FILE (0.08 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java

        public static FileInputStream openInputStream(File file) {
            try {
                return FileUtils.openInputStream(file);
            } catch (IOException e) {
                throw new RuntimeException("Problems opening file input stream for file: " + file, e);
            }
        }
    
        /**
         * Ensures that the given file (or directory) is marked as modified. If the file
         * (or directory) does not exist, a new file is created.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

                }
            """
            file('a.txt').text = 'a1'
            file('a.bin').text = 'a2'
            file('b.txt').text = 'b1'
            file('b.bin').text = 'b2'
    
            when:
            run("merge")
    
            then:
            outputContains("result = [a.txt, b.txt, a.bin, b.bin]")
        }
    
        def "can subtract the elements of another file collection"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/ProcessInstrumentationInKotlinIntegrationTest.groovy

            fromString()      | "ProcessGroovyMethods.execute(command, listOf(\"FOOBAR=foobar\"), file(\"$pwd\"))"  | pwd               | "foobar"
            fromStringArray() | "ProcessGroovyMethods.execute(command, listOf(\"FOOBAR=foobar\"), file(\"$pwd\"))"  | pwd               | "foobar"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/IoTestCase.java

              + "[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";
    
      private File testDir;
      private File tempDir;
    
      private final Set<File> filesToDelete = new HashSet<>();
    
      @Override
      protected void tearDown() {
        for (File file : filesToDelete) {
          if (file.exists()) {
            delete(file);
          }
        }
        filesToDelete.clear();
      }
    
      private File getTestDir() throws IOException {
        if (testDir != null) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy

                    outputFile = project.file("\${buildDir}/output.txt")
                }
            """
            file('foo/Changing.java') << toUnix(TEXT_WITH_LINE_ENDINGS)
            file('foo/Changing.jpg').bytes = BINARY_CONTENT_WITH_LF
    
            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
    - 21.2K bytes
    - Viewed (0)
  6. platforms/software/version-control/src/test/groovy/org/gradle/vcs/git/internal/GitVersionControlSystemSpec.groovy

            target.file( '.git').assertIsDir()
            target.file( 'submodule/foo.txt').text == "hello from submodule"
        }
    
        def 'reset a cloned repository with dirty working dir'() {
            given:
            def target = tmpDir.file('versionDir')
            gitVcs.populate(target, repoHead, repoSpec)
    
            def removed = target.file("source.txt")
            removed.delete()
            def changed = target.file("dir/another.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 13:11:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy

        }
    
        def "reports undeclared file system entry check for File.#kind"() {
            Assume.assumeFalse("cannot use the file APIs in restricted DSL", isRestrictedDsl())
    
            def configurationCache = newConfigurationCacheFixture()
    
            UndeclaredFileAccess.FileCheck check = fileCheck(testDirectory)
            buildLogicApplication(check)
            def accessedFile = new File(check.filePath)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/file/FileSystemLocationProperty.java

        /**
         * Views the location of this file as a {@link File}.
         */
        Provider<File> getAsFile();
    
        /**
         * Sets the location of this file, using a {@link File} instance. {@link File} instances with relative paths are resolved relative to the project directory of the project
         * that owns this property instance.
         */
        void set(@Nullable File file);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 12:28:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsIgnoringIntegrationTest.groovy

                println("exists = " + new File(projectDir, "file2.txt").exists())
                println("exists = " + new File(projectDir, "file3.txt").exists())
            """)
    
            when:
            file("gradle.properties") << """
                $IGNORE_FS_CHECKS_PROPERTY=file1.txt;file2.txt
            """
            configurationCacheRun()
    
            then:
            problems.assertResultHasProblems(result) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperGenerationIntegrationTest.groovy

            file("first/gradle/wrapper/gradle-wrapper.properties").md5Hash == file("second/gradle/wrapper/gradle-wrapper.properties").md5Hash
            file("first/gradlew").md5Hash == file("second/gradlew").md5Hash
            file("first/gradlew.bat").md5Hash == file("second/gradlew.bat").md5Hash
        }
    
        def "generated wrapper does not change unnecessarily"() {
            def wrapperJar = file("gradle/wrapper/gradle-wrapper.jar")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top