- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for parseVersionConstraint (0.1 sec)
-
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java
c = versionParser.parseVersionConstraint("[1.0],[2.0],[3.0]"); assertContains(c, "1.0", "2.0", "3.0"); assertNotContains(c, "1.5"); c = versionParser.parseVersionConstraint("[1,3),(3,5)"); assertContains(c, "1", "2", "4"); assertNotContains(c, "3", "5"); c = versionParser.parseVersionConstraint("[1,3),(3,)"); assertContains(c, "1", "2", "4"); assertNotContains(c, "3");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java
* {@linkplain org.apache.maven.api.services.VersionParser} service. * * @see Version * @see VersionRange * @see org.apache.maven.api.services.VersionParser#parseVersionConstraint(String) * @see org.apache.maven.api.Session#parseVersionConstraint(String) * @since 4.0.0 */ @Experimental public interface VersionConstraint { /** * Returns the range of this constraint, or {@code null} if none. * <p>
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Aug 27 21:13:34 UTC 2024 - 2.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java
* @return the parsed version constraint, never {@code null} * @throws VersionParserException if the range specification violates the syntax rules of this scheme */ @Nonnull VersionConstraint parseVersionConstraint(@Nonnull String constraint); /** * Checks whether a given artifact version is considered a {@code SNAPSHOT} or not. */ boolean isSnapshot(@Nonnull String version);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Dec 19 19:08:55 UTC 2023 - 2.7K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java
} public static boolean checkSnapshot(String version) { return version.endsWith(SNAPSHOT) || SNAPSHOT_TIMESTAMP.matcher(version).matches(); } @Override public VersionConstraint parseVersionConstraint(String constraint) { requireNonNull(constraint, "constraint"); return new DefaultVersionConstraint(versionScheme, constraint); } static class DefaultVersion implements Version {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.5K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java
} return classifier; } @Override public VersionConstraint getVersionConstraint() { return session.parseVersionConstraint(dependency.getVersion()); } @Override public String getExtension() { return getType().getExtension(); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 7.5K bytes - Viewed (0)