Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for createTempDirectory (0.29 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. guava/src/com/google/common/io/TempFileCreator.java

      private static final class JavaNioCreator extends TempFileCreator {
        @Override
        File createTempDir() {
          try {
            return java.nio.file.Files.createTempDirectory(
                    Paths.get(JAVA_IO_TMPDIR.value()), /* prefix= */ null, directoryPermissions.get())
                .toFile();
          } catch (IOException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/TempFileCreator.java

      private static final class JavaNioCreator extends TempFileCreator {
        @Override
        File createTempDir() {
          try {
            return java.nio.file.Files.createTempDirectory(
                    Paths.get(JAVA_IO_TMPDIR.value()), /* prefix= */ null, directoryPermissions.get())
                .toFile();
          } catch (IOException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 06 17:11:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. 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)
  8. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasherTest.groovy

        def fileSnapshot(String path, Map<String, Object> attributesMap = [:], Exception exception = null) {
            ByteArrayOutputStream manifestBytes = getManifestByteStream(attributesMap)
            File root = Files.createTempDirectory(tmpDir.toPath(), null).toFile()
            File manifestFile = new File(root, MANIFEST_PATH)
            manifestFile.parentFile.mkdirs()
            manifestFile.write(manifestBytes.toString())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  9. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/PropertiesFileAwareClasspathResourceHasherTest.groovy

            return fileSnapshot(path, bos.toByteArray())
        }
    
        RegularFileSnapshotContext fileSnapshot(String path, byte[] bytes) {
            def dir = Files.createTempDirectory(tmpdir.toPath(), null).toFile()
            def file = new File(dir, path)
            file.parentFile.mkdirs()
            file << bytes
            return new RegularFileSnapshotContext() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  10. platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/listeners/ConstantsCollectorTest.groovy

                (String constantOrigin, String dependent) -> privateDependentToConstants.computeIfAbsent(dependent, { new LinkedHashSet<>() }).add(constantOrigin)
            )
            compiler = new TestCompiler(
                Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(),
                { f -> Optional.empty() },
                {},
                {},
                consumer
            )
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 22.4K bytes
    - Viewed (0)
Back to top