- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for parseVersion (0.12 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) -
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) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
artifact.getArtifactId().isEmpty() ? project.getArtifactId() : artifact.getArtifactId(), artifact.getBaseVersion().asString().isEmpty() ? session.parseVersion(project.getVersion()).asString() : artifact.getBaseVersion().asString(), artifact.getClassifier(), artifact.getExtension(), null);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.3K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java
buffer.append("]"); return buffer.toString(); } } public ComparableVersion(String version) { parseVersion(version); } @SuppressWarnings("checkstyle:innerassignment") public final void parseVersion(String version) { this.value = version; items = new ListItem(); version = version.toLowerCase(Locale.ENGLISH);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 26K bytes - Viewed (0)