Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for createVersionMatcher (0.38 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/toolchain/RequirementMatcherFactoryTest.java

            assertTrue(matcher.matches("foo"));
        }
    
        /**
         * Test of createVersionMatcher method, of class RequirementMatcherFactory.
         */
        @Test
        void testCreateVersionMatcher() {
            RequirementMatcher matcher;
            matcher = RequirementMatcherFactory.createVersionMatcher("1.5.2");
            assertFalse(matcher.matches("1.5"));
            assertTrue(matcher.matches("1.5.2"));
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Tue Feb 11 12:33:57 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java

        private RequirementMatcherFactory() {}
    
        public static RequirementMatcher createExactMatcher(String provideValue) {
            return new ExactMatcher(provideValue);
        }
    
        public static RequirementMatcher createVersionMatcher(String provideValue) {
            return new VersionMatcher(provideValue);
        }
    
        private static final class ExactMatcher implements RequirementMatcher {
    
            private String provides;
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Feb 12 13:13:28 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

                }
    
                RequirementMatcher matcher;
                if ("version".equals(key)) {
                    matcher = RequirementMatcherFactory.createVersionMatcher(value);
                } else {
                    matcher = RequirementMatcherFactory.createExactMatcher(value);
                }
    
                jtc.addProvideToken(key, matcher);
            }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top