Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for isFamily (0.18 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

            OS_FAMILY = getOsFamily();
            IS_WINDOWS = isFamily(FAMILY_WINDOWS);
        }
    
        private Os() {}
    
        /**
         * Determines if the OS on which Maven is executing matches the
         * given OS family.
         *
         * @param family the family to check for
         * @return true if the OS matches
         *
         */
        public static boolean isFamily(String family) {
            return isFamily(family, OS_NAME);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  2. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/EclipseConventionPlugin.java

                eclipseProject.setName(project.getPath());
                if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                    eclipseProject.setName(eclipseProject.getName().replace(':', '_'));
                }
            }
    
    
            File licenseHeaderFile;
            String prefix = ":x-pack";
            if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                prefix = prefix.replace(':', '_');
            }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 01 09:43:51 GMT 2021
    - 6.4K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/AntFixtureStop.groovy

            final Object pid = "${ -> this.fixture.pid }"
            onlyIf { fixture.pidFile.exists() }
            doFirst {
                logger.info("Shutting down ${fixture.name} with pid ${pid}")
            }
    
            if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                executable = 'Taskkill'
                args('/PID', pid, '/F')
            } else {
                executable = 'kill'
                args('-9', pid)
            }
            doLast {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.6K bytes
    - Click Count (0)
  4. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/FileModelSourceTest.java

            assertTrue(instance.equals(new FileModelSource(tempFile)));
        }
    
        @Test
        void testWindowsPaths() throws Exception {
            assumeTrue(Os.isFamily("Windows"));
    
            File upperCaseFile = createTempFile("TESTE");
            String absolutePath = upperCaseFile.getAbsolutePath();
            File lowerCaseFile = new File(absolutePath.toLowerCase());
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java

            boolean reverse = false;
    
            if (test.startsWith("!")) {
                reverse = true;
                test = test.substring(1);
            }
    
            boolean result = Os.isFamily(test, actualName);
    
            return reverse ? !result : result;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/OperatingSystemProfileActivator.java

            String test = family;
            boolean reverse = false;
    
            if (test.startsWith("!")) {
                reverse = true;
                test = test.substring(1);
            }
    
            boolean result = Os.isFamily(test);
    
            if (reverse) {
                return !result;
            } else {
                return result;
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BwcSetupExtension.java

                        loggedExec.environment("JAVA_HOME", getJavaHome(Integer.parseInt(minimumCompilerVersion)));
                    }
                });
    
                if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                    loggedExec.executable("cmd");
                    loggedExec.args("/C", "call", new File(checkoutDir.get(), "gradlew").toString());
                } else {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Aug 18 09:11:28 GMT 2021
    - 6.8K bytes
    - Click Count (0)
Back to Top