Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createExactMatcher (0.35 sec)

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

    /**
     *
     */
    class RequirementMatcherFactoryTest {
    
        /**
         * Test of createExactMatcher method, of class RequirementMatcherFactory.
         */
        @Test
        void testCreateExactMatcher() {
            RequirementMatcher matcher;
            matcher = RequirementMatcherFactory.createExactMatcher("foo");
            assertFalse(matcher.matches("bar"));
            assertFalse(matcher.matches("foobar"));
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

                if ("version".equals(key)) {
                    matcher = RequirementMatcherFactory.createVersionMatcher(value);
                } else {
                    matcher = RequirementMatcherFactory.createExactMatcher(value);
                }
    
                jtc.addProvideToken(key, matcher);
            }
    
            // populate the configuration section
            Xpp3Dom dom = (Xpp3Dom) model.getConfiguration();
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Thu Sep 14 11:48:15 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/toolchain/RequirementMatcherFactory.java

    import org.apache.maven.artifact.versioning.VersionRange;
    
    /**
     *
     */
    public final class RequirementMatcherFactory {
        private RequirementMatcherFactory() {}
    
        public static RequirementMatcher createExactMatcher(String provideValue) {
            return new ExactMatcher(provideValue);
        }
    
        public static RequirementMatcher createVersionMatcher(String provideValue) {
            return new VersionMatcher(provideValue);
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java

            ToolchainModel model = new ToolchainModel();
            model.setType("TYPE");
            DefaultToolchain toolchain = newDefaultToolchain(model);
            toolchain.addProvideToken("name", RequirementMatcherFactory.createExactMatcher("Jane Doe"));
    
            assertFalse(toolchain.matchesRequirements(Collections.singletonMap("name", "John Doe")));
            verify(logger).debug("Toolchain {} doesn't match required property: {}", toolchain, "name");
        }
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Sep 22 09:07:17 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top