- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for DefaultArtifactVersion (0.65 sec)
-
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java
} public int compareTo(ArtifactVersion otherVersion) { if (otherVersion instanceof DefaultArtifactVersion) { return this.comparable.compareTo(((DefaultArtifactVersion) otherVersion).comparable); } else { return compareTo(new DefaultArtifactVersion(otherVersion.toString())); } } public int getMajorVersion() {
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-compat/src/test/java/org/apache/maven/artifact/deployer/SimpleArtifactMetadataSource.java
return Collections.singletonList(new DefaultArtifactVersion("10.1.3")); } public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository( Artifact artifact, ArtifactRepository localRepository, ArtifactRepository remoteRepository) { return Collections.singletonList(new DefaultArtifactVersion("10.1.3")); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.5K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java
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-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java
int depth1 = e1.getDepth(); int depth2 = e2.getDepth(); if (depth1 == depth2) { ArtifactVersion v1 = new DefaultArtifactVersion(e1.getVersion()); ArtifactVersion v2 = new DefaultArtifactVersion(e2.getVersion()); if (newerFirst) { return v1.compareTo(v2) > 0 ? e1 : e2; } return v1.compareTo(v2) > 0 ? e2 : e1;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
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"))); } @Test
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-compat/src/main/java/org/apache/maven/profiles/activation/JdkPrefixProfileActivator.java
VersionRange jdkVersionRange = VersionRange.createFromVersionSpec(convertJdkToMavenVersion(jdk)); DefaultArtifactVersion jdkVersion = new DefaultArtifactVersion(convertJdkToMavenVersion(getJdkVersion())); return jdkVersionRange.containsVersion(jdkVersion); } private String convertJdkToMavenVersion(String jdk) {
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-compat/src/main/java/org/apache/maven/execution/DefaultRuntimeInformation.java
import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import org.apache.maven.artifact.versioning.ArtifactVersion; import org.apache.maven.artifact.versioning.DefaultArtifactVersion; import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.9K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java
if (result == 0) { // We don't consider the version range in the comparison, just the resolved version result = new DefaultArtifactVersion(version) .compareTo(new DefaultArtifactVersion(a.getVersion())); } } } } return result; } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 14.6K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java
import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Test DefaultArtifactVersion. * */ class DefaultArtifactVersionTest { private ArtifactVersion newArtifactVersion(String version) { return new DefaultArtifactVersion(version); } private void checkVersionParsing(
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-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
import org.apache.maven.artifact.resolver.filter.ExclusionArtifactFilter; import org.apache.maven.artifact.versioning.ArtifactVersion; import org.apache.maven.artifact.versioning.DefaultArtifactVersion; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.bridge.MavenRepositorySystem;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 30.3K bytes - Viewed (0)