- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for containsVersion (0.14 sec)
-
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java
assertTrue(range.containsVersion(new DefaultArtifactVersion("1.1-SNAPSHOT"))); assertTrue(range.containsVersion(new DefaultArtifactVersion("1.2-SNAPSHOT"))); range = VersionRange.createFromVersionSpec("[1.0-SNAPSHOT,1.2]"); assertTrue(range.containsVersion(new DefaultArtifactVersion("1.0-SNAPSHOT"))); assertTrue(range.containsVersion(new DefaultArtifactVersion("1.1-SNAPSHOT"))); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 44.3K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
if (recommendedVersion != null && r.containsVersion(recommendedVersion)) { // if we find the original, use that version = recommendedVersion; break; } else if (version == null && restriction.getRecommendedVersion() != null && r.containsVersion(restriction.getRecommendedVersion())) {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 19K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java
} } @Override public boolean contains(Version version) { if (version instanceof DefaultVersion) { return delegate.containsVersion(((DefaultVersion) version).delegate); } else { return contains(new DefaultVersion(versionScheme, version.asString())); } } @Override
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/Restriction.java
} public ArtifactVersion getUpperBound() { return upperBound; } public boolean isUpperBoundInclusive() { return upperBoundInclusive; } public boolean containsVersion(ArtifactVersion version) { if (lowerBound != null) { int comparison = lowerBound.compareTo(version); if ((comparison == 0) && !lowerBoundInclusive) { return false;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java
DefaultArtifactVersion jdkVersion = new DefaultArtifactVersion(convertJdkToMavenVersion(getJdkVersion())); return jdkVersionRange.containsVersion(jdkVersion); } private String convertJdkToMavenVersion(String jdk) { return jdk.replace("_", "-"); } protected String getJdkVersion() { return JDK_VERSION; }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 3K bytes - Viewed (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java
try { Version ver = versionScheme.parseVersion(v.getKey()); if (versionConstraint.containsVersion(ver)) { versions.add(ver); result.setRepository(ver, v.getValue()); } } catch (InvalidVersionSpecificationException e) {
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/aether/DefaultRepositorySystemSessionFactory.java
if (versionRange != null) { Version v = parseVersion(a.getVersion()); return !versionRange.containsVersion(v); } else { return !artifact.getVersion().equals(a.getVersion()); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 25.8K bytes - Viewed (0)