Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for versionRange (0.19 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

    import org.apache.maven.artifact.DefaultArtifact;
    
    /**
     * Construct a version range from a specification.
     *
     */
    public class VersionRange {
        private static final Map<String, VersionRange> CACHE_SPEC = Collections.synchronizedMap(new WeakHashMap<>());
    
        private static final Map<String, VersionRange> CACHE_VERSION = Collections.synchronizedMap(new WeakHashMap<>());
    
        private final ArtifactVersion recommendedVersion;
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/factory/DefaultArtifactFactory.java

                String artifactId,
                VersionRange versionRange,
                String type,
                String classifier,
                String scope) {
            return createArtifact(groupId, artifactId, versionRange, type, classifier, scope, null);
        }
    
        public Artifact createDependencyArtifact(
                String groupId,
                String artifactId,
                VersionRange versionRange,
                String type,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            VersionRange versionRange;
            try {
                versionRange = VersionRange.createFromVersionSpec(version);
            } catch (InvalidVersionSpecificationException e) {
                return null;
            }
    
            return createExtensionArtifactX(groupId, artifactId, versionRange);
        }
    
        // DefaultProjectBuilder
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

                return asString();
            }
        }
    
        static class DefaultVersionRange implements VersionRange {
            private final VersionScheme versionScheme;
            private final org.eclipse.aether.version.VersionRange delegate;
    
            DefaultVersionRange(VersionScheme versionScheme, org.eclipse.aether.version.VersionRange delegate) {
                this.versionScheme = versionScheme;
                this.delegate = delegate;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  5. impl/maven-core/src/main/java/org/apache/maven/artifact/factory/ArtifactFactory.java

        Artifact createDependencyArtifact(
                String groupId, String artifactId, VersionRange versionRange, String type, String classifier, String scope);
    
        Artifact createDependencyArtifact(
                String groupId,
                String artifactId,
                VersionRange versionRange,
                String type,
                String classifier,
                String scope,
                boolean optional);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionRangeTest.java

            } catch (VersionParserException e) {
                assertTrue(true);
            }
        }
    
        private void assertContains(VersionRange range, String version) {
            assertTrue(range.contains(newVersion(version)), range + " should contain " + version);
        }
    
        private void assertNotContains(VersionRange range, String version) {
            assertFalse(range.contains(newVersion(version)), range + " should not contain " + version);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/artifact/factory/DefaultArtifactFactoryTest.java

            Artifact artifact = factory.createDependencyArtifact(
                    "test-grp", "test-artifact", VersionRange.createFromVersion("1.0"), "type", null, "system", "provided");
            Artifact artifact2 = factory.createDependencyArtifact(
                    "test-grp", "test-artifact-2", VersionRange.createFromVersion("1.0"), "type", null, "system", "test");
            Artifact artifact3 = factory.createDependencyArtifact(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/LegacyRepositorySystem.java

            return artifactFactory.createProjectArtifact(groupId, artifactId, metaVersionId);
        }
    
        public Artifact createDependencyArtifact(Dependency d) {
            VersionRange versionRange;
            try {
                versionRange = VersionRange.createFromVersionSpec(d.getVersion());
            } catch (InvalidVersionSpecificationException e) {
                // MNG-5368: Log a message instead of returning 'null' silently.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  9. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

        @Test
        void testCache() throws InvalidVersionSpecificationException {
            VersionRange range = VersionRange.createFromVersionSpec("[1.0,1.2]");
            assertSame(range, VersionRange.createFromVersionSpec("[1.0,1.2]")); // same instance from spec cache
    
            VersionRange spec = VersionRange.createFromVersionSpec("1.0");
            assertSame(spec, VersionRange.createFromVersionSpec("1.0")); // same instance from spec cache
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  10. compat/maven-artifact/src/main/java/org/apache/maven/artifact/DefaultArtifact.java

        }
    
        @Override
        public VersionRange getVersionRange() {
            return versionRange;
        }
    
        @Override
        public void setVersionRange(VersionRange versionRange) {
            this.versionRange = versionRange;
            selectVersionFromNewRangeIfAvailable();
        }
    
        private void selectVersionFromNewRangeIfAvailable() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top