Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for createTempDirectory (0.55 sec)

  1. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java

        Path tempDirPath;
        File tempDirFile;
        AtomicInteger counter;
        FileSystem fileSystem;
    
        @Setup(Level.Trial)
        public void setupTrial() throws IOException {
            this.tempRootDir = Files.createTempDirectory("chmod-benchmark");
            NativeServices.initializeOnDaemon(tempRootDir.toFile(), NativeServicesMode.fromSystemProperties());
            this.fileSystem = FileSystems.getDefault();
        }
    
        @TearDown(Level.Trial)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. 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)
  3. testing/internal-performance-testing/src/integTest/groovy/org/gradle/performance/fixture/MavenDownloaderTest.groovy

    @Requires(UnitTestPreconditions.Online)
    class MavenDownloaderTest extends Specification {
    
        @TempDir
        File tmpDir
    
        def installRoot
        def downloader
    
        def setup() {
            installRoot = Files.createTempDirectory(tmpDir.toPath(), null).toFile()
            downloader = new MavenInstallationDownloader(installRoot)
            if (JavaVersion.current().isJava7()) {
                System.setProperty("https.protocols", "TLSv1.2")
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/CachingJvmMetadataDetectorTest.groovy

            )
            def detector = new CachingJvmMetadataDetector(metaDataDetector)
            File javaHome1 = Jvm.current().javaHome
            def link = new TestFile(Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(), "jdklink")
            link.createLink(javaHome1)
    
            when:
            def metadata1 = detector.getMetadata(testLocation(link.absolutePath))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. platforms/core-execution/build-cache-example-client/src/main/java/org/gradle/caching/example/BuildCacheClientModule.java

            CacheCleanupStrategy cacheCleanupStrategy,
            FileAccessTimeJournal fileAccessTimeJournal,
            CacheFactory cacheFactory
        ) throws IOException {
            File target = Files.createTempDirectory("build-cache").toFile();
            FileUtils.forceMkdir(target);
    
            FileAccessTracker fileAccessTracker = new SingleDepthFileAccessTracker(fileAccessTimeJournal, target, 1);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 07:11:58 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  6. testing/architecture-test/src/test/java/org/gradle/architecture/test/TempDirectoryCreationControlTest.java

                .because(RATIONALE);
    
        @ArchTest
        public static final ArchRule forbid_illegal_calls_to_Files_createTempDirectory =
            classes()
                .should(not(callMethod(Files.class, "createTempDirectory", String.class, FileAttribute[].class)))
                .because(RATIONALE);
    
        @ArchTest
        public static final ArchRule forbid_illegal_calls_to_kotlin_Files_createTempDir =
            classes()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. 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)
  8. android/guava/src/com/google/common/io/Files.java

       *     {@link java.nio.file.Files#createTempDirectory}, transforming it to a {@link File} using
       *     {@link java.nio.file.Path#toFile() toFile()} if needed. To restrict permissions as this
       *     method does, pass {@code
       *     PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwx------"))} to your
       *     call to {@code createTempDirectory}.
       */
      @Beta
      @Deprecated
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/Files.java

       *     {@link java.nio.file.Files#createTempDirectory}, transforming it to a {@link File} using
       *     {@link java.nio.file.Path#toFile() toFile()} if needed. To restrict permissions as this
       *     method does, pass {@code
       *     PosixFilePermissions.asFileAttribute(PosixFilePermissions.fromString("rwx------"))} to your
       *     call to {@code createTempDirectory}.
       */
      @Beta
      @Deprecated
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  10. 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)
Back to top