Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createTempDirectory (0.17 sec)

  1. platforms/core-execution/build-cache-example-client/src/main/java/org/gradle/caching/example/ExampleBuildCacheClient.java

            BuildCacheKey cacheKey = new SimpleBuildCacheKey(HashCode.fromString("b9800f9130db9efa58f6ec8c744f1cc7"));
            String identity = "test-entity";
            Path targetOutputDirectory = Files.createTempDirectory("target-output");
            ExampleEntity targetEntity = new ExampleEntity(identity, targetOutputDirectory.toFile());
    
            // Try to load a non-existent entity
            buildCacheController.load(cacheKey, targetEntity)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:35:22 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. platforms/extensibility/test-kit/src/integTest/groovy/org/gradle/testkit/runner/enduser/GradleRunnerMiscEndUserIntegrationTest.groovy

                import static org.gradle.testkit.runner.TaskOutcome.*
                import spock.lang.Specification
    
                class $className extends Specification {
                    File testProjectDir = Files.createTempDirectory("GradleRunnerMiscEndUserIntegrationTest").toFile()
                    File buildFile
                    File settingsFile
    
                    def setup() {
                        testProjectDir.deleteOnExit()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

         */
        void useTestDirectoryThatIsNotEmbeddedInAnotherBuild() {
            // Cannot use Files.createTempDirectory(String) as other tests mess with the static state used by that method
            // so that it creates directories under the root directory of the Gradle build.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            resolve(path).apply {
                parentFile.mkdirs()
                writeText(text.trimIndent())
            }
    
        private
        fun File.withUniqueDirectory(prefixPath: String): File =
            Files.createTempDirectory(
                withDirectory(prefixPath.substringBeforeLast("/")).toPath(),
                prefixPath.substringAfterLast("/")
            ).toFile()
    
        private
        fun File.withDirectory(path: String): File =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top