Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for makeUnreadable (0.23 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

            def outputDirectory = file("output")
            def unreadableOutput = file("${outputDirectory.name}/unreadable${type.capitalize()}")
            create(unreadableOutput).makeUnreadable()
    
            buildFile << """
                task copy(type: Copy) {
                    from '${input.name}'
                    into '${outputDirectory.name}'
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. testing/integ-test/src/integTest/groovy/org/gradle/integtests/SyncTaskIntegrationTest.groovy

            def input = file("readableFile.txt").createFile()
    
            def outputDirectory = file("output")
            def unreadableOutput = outputDirectory.file("unreadableFile").createFile()
            unreadableOutput.makeUnreadable()
    
            buildFile << """
                task sync(type: Sync) {
                    from '${input.name}'
                    into '${outputDirectory.name}'
                }
            """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy

            unreadable."create${type.capitalize()}"().makeUnreadable()
    
            when:
            directorySnapshotter.snapshot(rootDir.absolutePath, null, [:], unfilteredSubSnapshotsCollector)
    
            then:
            def ex = thrown(UncheckedIOException)
            ex.message == String.format(message, unreadable.absolutePath)
            0 * _
    
            cleanup:
            rootDir.listFiles()*.makeReadable()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

                throw new RuntimeException(e);
            }
            return this;
        }
    
        public TestFile makeUnreadable() {
            boolean success = setReadable(false, false);
            assert success;
            assert !Files.isReadable(toPath());
            return this;
        }
    
        public TestFile makeReadable() {
            boolean success = setReadable(true, false);
            assert success;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            }
            task check {
                doLast {
                    assert gradle.gradleVersion == '${otherVersion.version.version}'
                }
            }"""
            otherVersion.binDistribution.makeReadable()
            executer.withTasks('wrapper').run()
    
            when:
            toolingApi.withConnector { connector ->
                connector.useBuildDistribution()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
Back to top