- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for addProvideToken (0.27 sec)
-
maven-core/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java
matcher = RequirementMatcherFactory.createVersionMatcher(value); } else { matcher = RequirementMatcherFactory.createExactMatcher(value); } jtc.addProvideToken(key, matcher); } // populate the configuration section Xpp3Dom dom = (Xpp3Dom) model.getConfiguration();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Sep 14 11:48:15 UTC 2023 - 4K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java
return type != null ? type : model.getType(); } @Override public final ToolchainModel getModel() { return model; } public final void addProvideToken(String type, RequirementMatcher matcher) { provides.put(type, matcher); } @Override public boolean matchesRequirements(Map<String, String> requirements) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Sep 22 09:07:17 UTC 2023 - 4.7K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/toolchain/DefaultToolchainTest.java
void testNonMatchingRequirementProperty() { 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")));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Sep 22 09:07:17 UTC 2023 - 4.9K bytes - Viewed (0)