- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for parseVersion (0.09 sec)
-
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java
assertTrue(c.contains(versionParser.parseVersion("1.0"))); c = versionParser.parseVersionConstraint("[1.0]"); assertNull(c.getRecommendedVersion()); assertTrue(c.contains(versionParser.parseVersion("1.0"))); c = versionParser.parseVersionConstraint("[1.0],[2.0]"); assertTrue(c.contains(versionParser.parseVersion("1.0")));
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/Version.java
* Versions are usually parsed using the {@link org.apache.maven.api.services.VersionParser} service. * * @since 4.0.0 * @see org.apache.maven.api.services.VersionParser#parseVersion(String) * @see org.apache.maven.api.Session#parseVersion(String) * @see VersionConstraint * @see VersionRange */ @Experimental public interface Version extends Comparable<Version> { /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Aug 27 21:13:34 UTC 2024 - 1.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java
* @return the parsed version, never {@code null} * @throws VersionParserException if the string violates the syntax rules of this scheme * @see org.apache.maven.api.Session#parseVersion(String) */ @Nonnull Version parseVersion(@Nonnull String version); /** * Parses the specified version range specification, for example "[1.0,2.0)". *
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-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java
private Integer buildNumber; private String qualifier; private ComparableVersion comparable; public DefaultArtifactVersion(String version) { parseVersion(version); } @Override public int hashCode() { return 11 + comparable.hashCode(); } @Override public boolean equals(Object other) { if (this == other) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6K bytes - Viewed (0) -
compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionRangeTest.java
public class VersionRangeTest { private ModelVersionParser versionParser = new DefaultModelVersionParser(new GenericVersionScheme()); private Version newVersion(String version) { return versionParser.parseVersion(version); } private VersionRange parseValid(String range) { try { return versionParser.parseVersionRange(range); } catch (VersionParserException e) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.8K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java
@Inject public DefaultModelVersionParser(VersionScheme versionScheme) { this.versionScheme = requireNonNull(versionScheme, "versionScheme"); } @Override public Version parseVersion(String version) { requireNonNull(version, "version"); return new DefaultVersion(versionScheme, version); } @Override public VersionRange parseVersionRange(String range) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.5K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ArtifactVersion.java
int getMajorVersion(); int getMinorVersion(); int getIncrementalVersion(); int getBuildNumber(); String getQualifier(); void parseVersion(String version);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.2K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java
return filters.get(0); } else { return ChainedVersionFilter.newInstance(filters); } } private Version parseVersion(String spec) { try { return versionScheme.parseVersion(spec); } catch (InvalidVersionSpecificationException e) { throw new RuntimeException(e); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 25.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java
} result.putAll(getUserProperties()); return result; } @Nonnull @Override public Version getMavenVersion() { return parseVersion(runtimeInformation.getMavenVersion()); } @Override public int getDegreeOfConcurrency() { return getMavenSession().getRequest().getDegreeOfConcurrency(); } @Nonnull
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.2K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java
List<Version> versions = new ArrayList<>(); for (Map.Entry<String, ArtifactRepository> v : versionIndex.entrySet()) { try { Version ver = versionScheme.parseVersion(v.getKey()); if (versionConstraint.containsVersion(ver)) { versions.add(ver); result.setRepository(ver, v.getValue());
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 10.2K bytes - Viewed (0)