Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for createTempDirectory (0.16 sec)

  1. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ApplyTest.java

                UpgradeContext context = createMockContext();
    
                // Create a temporary directory with a POM file for the test
                Path tempDir = Files.createTempDirectory("apply-test");
                try {
                    Path pomFile = tempDir.resolve("pom.xml");
                    String pomContent = PomBuilder.create()
                            .groupId("test")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 10:39:17 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/transforms/Minify.kt

                ?: error("Cannot derive artifact name from: $fileName")
        }
    
        private
        fun minify(artifact: File, keepClasses: Set<String>, jarFile: File): File {
            val tempDirectory = java.nio.file.Files.createTempDirectory(jarFile.name).toFile()
            val classesDir = tempDirectory.resolve("classes")
            val manifestFile = tempDirectory.resolve("MANIFEST.MF")
            val buildReceiptFile = tempDirectory.resolve("build-receipt.properties")
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Dec 18 11:46:45 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ClassPathTest.java

    import static java.nio.file.Files.createDirectory;
    import static java.nio.file.Files.createFile;
    import static java.nio.file.Files.createSymbolicLink;
    import static java.nio.file.Files.createTempDirectory;
    import static java.util.logging.Level.WARNING;
    
    import com.google.common.base.Joiner;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableSet;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

        private Path tempDir;
    
        @BeforeEach
        public void setUp() throws IOException {
            MockitoAnnotations.openMocks(this);
    
            // Create temporary directory for test state
            tempDir = Files.createTempDirectory("jcifs-test-handles");
    
            // Set system property for handle state directory
            System.setProperty("jcifs.smb.client.handleStateDirectory", tempDir.toString());
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CheckTest.java

                UpgradeContext context = createMockContext();
    
                // Create a temporary directory with a POM file for the test
                Path tempDir = Files.createTempDirectory("check-test");
                try {
                    Path pomFile = tempDir.resolve("pom.xml");
                    String pomContent = PomBuilder.create()
                            .groupId("test")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sat Jun 07 06:22:47 UTC 2025
    - 4.9K 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: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 29 18:50:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  7. impl/maven-core/src/test/java/org/apache/maven/project/RepositoryLeakageTest.java

        @SuppressWarnings("checkstyle:MethodLength")
        public void testRepositoryLeakageBetweenSiblings() throws Exception {
            // Create a temporary directory structure for our test
            Path tempDir = Files.createTempDirectory("maven-repo-leakage-test");
    
            try {
                // Create parent POM
                Path parentPom = tempDir.resolve("pom.xml");
                Files.writeString(parentPom, """
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

        protected
        fun File.withJsonFile(path: String, @Language("json") text: String): File = withFile(path, text)
    
        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 Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 30 10:14:25 UTC 2025
    - 18K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Files.java

       *     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: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/Files.java

       *     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: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Sep 25 20:24:13 UTC 2025
    - 32.8K bytes
    - Viewed (0)
Back to top