Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for isWindows (0.2 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

                case FAMILY_WINDOWS -> isWindows;
                case FAMILY_WIN9X -> isWindows && is9x;
                case FAMILY_NT -> isWindows && isNT;
                case FAMILY_OS2 -> actualOsName.contains(FAMILY_OS2);
                case FAMILY_NETWARE -> actualOsName.contains(FAMILY_NETWARE);
                case FAMILY_DOS -> File.pathSeparatorChar == ';' && !isFamily(FAMILY_NETWARE, actualOsName) && !isWindows;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  2. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

                if (psOutputs != null) {
                    Stream.of(psOutputs).forEach(File::delete);
                }
            }
        }
    
        static void pkill(String pid) {
            ExecResult execResult = run(isWindows() ? new String[]{"taskkill.exe", "/F", "/T", "/PID", pid} : new String[]{"kill", "-9", pid});
            if (execResult.code != 0) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Sep 23 13:49:45 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        } finally {
          jarFile.delete();
        }
      }
    
      @AndroidIncompatible // Path (for symlink creation)
    
      public void testScanDirectory_symlinkCycle() throws IOException {
        if (isWindows()) {
          return; // TODO: b/136041958 - Can we detect cycles under Windows?
        }
        ClassLoader loader = ClassPathTest.class.getClassLoader();
        // directory with a cycle,
        // /root
        //    /left
    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. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          file = out.getFile();
          assertEquals(dataSize, file.length());
          assertTrue(file.exists());
          assertThat(file.getName()).contains("FileBackedOutputStream");
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
                java.nio.file.Files.getFileAttributeView(file.toPath(), PosixFileAttributeView.class)
                    .readAttributes();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 16:30:29 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildEnvironment.kt

            CODEQL_ENVIRONMENT_VARIABLES.any { it in System.getenv() }
        }
        val jvm = org.gradle.internal.jvm.Jvm.current()
        val javaVersion = JavaVersion.current()
        val isWindows = OperatingSystem.current().isWindows
        val isLinux = OperatingSystem.current().isLinux
        val isMacOsX = OperatingSystem.current().isMacOsX
        val isIntel: Boolean = architecture == "x86_64" || architecture == "x86"
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Sat Dec 21 08:58:33 UTC 2024
    - 4.7K bytes
    - Viewed (1)
  6. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        } finally {
          notJar.delete();
        }
      }
    
      public void testGetClassPathEntry() throws MalformedURLException, URISyntaxException {
        if (isWindows()) {
          return; // TODO: b/136041958 - We need to account for drive letters in the path.
        }
        assertEquals(
            new File("/usr/test/dep.jar").toURI(),
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 21:00:51 UTC 2025
    - 23K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          file = out.getFile();
          assertEquals(dataSize, file.length());
          assertTrue(file.exists());
          assertThat(file.getName()).contains("FileBackedOutputStream");
          if (!isAndroid() && !isWindows()) {
            PosixFileAttributes attributes =
                java.nio.file.Files.getFileAttributeView(file.toPath(), PosixFileAttributeView.class)
                    .readAttributes();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 16:30:29 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  8. build-logic-settings/build-environment/src/main/kotlin/gradlebuild/basics/BuildEnvironmentService.kt

            val execOutput = providers.exec {
                workingDir = projectDir
                isIgnoreExitValue = true
                commandLine = listOf("git", *args)
                if (OperatingSystem.current().isWindows) {
                    commandLine = listOf("cmd.exe", "/d", "/c") + commandLine
                }
            }
            return execOutput.result.zip(execOutput.standardOutput.asText) { result, outputText ->
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Jul 26 10:02:49 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/androidhomewarmup/AndroidHomeWarmupTask.kt

                |    </application>
                |</manifest>
            """.trimMargin()
    
        private fun buildProject(projectDir: File) {
            val wrapperName = if (OperatingSystem.current().isWindows) "gradlew.bat" else "gradlew"
            val gradleExecutable = rootProjectDir.file(wrapperName).get().asFile.absolutePath
    
            logger.info("Building project in $projectDir using $gradleExecutable")
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Dec 09 09:24:29 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/LmhostsTest.java

            // Make file unreadable on Unix-like systems
            boolean isWindows = System.getProperty("os.name").toLowerCase().contains("windows");
            if (!isWindows) {
                assertTrue(lmhostsFile.setReadable(false));
            }
    
            when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath());
    
            if (!isWindows) {
                // Should handle IOException gracefully and return null
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
Back to top