Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getSelectedVersion (0.1 sec)

  1. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            assertNull(range.getRecommendedVersion(), CHECK_VERSION_RECOMMENDATION);
            assertFalse(range.isSelectedVersionKnown(artifact), CHECK_SELECTED_VERSION_KNOWN);
            assertNull(range.getSelectedVersion(artifact), CHECK_SELECTED_VERSION);
    
            range = VersionRange.createFromVersionSpec("1.0");
            assertEquals("1.0", range.getRecommendedVersion().toString(), CHECK_VERSION_RECOMMENDATION);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        }
    
        @Override
        public boolean isOptional() {
            return optional;
        }
    
        @Override
        public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException {
            return versionRange.getSelectedVersion(this);
        }
    
        @Override
        public boolean isSelectedVersionKnown() throws OverConstrainedVersionException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                    } else {
                        done = true;
                    }
                }
            }
    
            return restrictions;
        }
    
        public ArtifactVersion getSelectedVersion(Artifact artifact) throws OverConstrainedVersionException {
            ArtifactVersion version;
            if (recommendedVersion != null) {
                version = recommendedVersion;
            } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

                                                        childRemoteRepositories);
                                            }
                                        } else {
                                            version = artifact.getSelectedVersion();
                                        }
    
                                        artifact.selectVersion(version.toString());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
Back to top