Search Options

Display Count
Sort
Preferred Language
Advanced Search

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

  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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  2. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  3. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  4. 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 Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorV4Test.java

            new EnhancedComponentConfigurator().configureComponent(mojo, configuration, evaluator, null);
    
            assertEquals(
                    Objects.equals(path.toUri().toString(), path.toUri().toASCIIString()), !Os.isFamily(Os.FAMILY_WINDOWS));
            assertEquals(mojo.uri, path.toUri());
            assertEquals(mojo.path, path);
            assertEquals(mojo.uriString, path.toUri().toString());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 26 19:31:34 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  6. impl/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

            new EnhancedComponentConfigurator().configureComponent(mojo, configuration, evaluator, null);
    
            assertEquals(
                    Objects.equals(path.toUri().toString(), path.toUri().toASCIIString()), !Os.isFamily(Os.FAMILY_WINDOWS));
            assertEquals(mojo.uri, path.toUri());
            assertEquals(mojo.path, path);
            assertEquals(mojo.uriString, path.toUri().toString());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 26 19:31:34 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/cmd/asm/internal/asm/parse.go

    			items = operands[:cap(operands)][len(operands)][:0]
    		} else {
    			items = make([]lex.Token, 0, 3)
    		}
    		for {
    			tok = p.nextToken()
    			if len(operands) == 0 && len(items) == 0 {
    				if p.arch.InFamily(sys.ARM, sys.ARM64, sys.AMD64, sys.I386, sys.Loong64, sys.RISCV64) && tok == '.' {
    					// Suffixes: ARM conditionals, Loong64 vector instructions, RISCV rounding mode or x86 modifiers.
    					tok = p.nextToken()
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Wed Nov 12 03:59:40 GMT 2025
    - 37.3K bytes
    - Click Count (0)
Back to Top