Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for createFromVersion (0.08 sec)

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

                String type,
                String classifier,
                ArtifactHandler artifactHandler) {
            this(
                    groupId,
                    artifactId,
                    VersionRange.createFromVersion(version),
                    scope,
                    type,
                    classifier,
                    artifactHandler,
                    false);
        }
    
        @SuppressWarnings("checkstyle:ParameterNumber")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            List<Restriction> restrictions = spec.getRestrictions();
            assertEquals(1, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
            VersionRange version = VersionRange.createFromVersion("1.0");
            assertSame(version, VersionRange.createFromVersion("1.0")); // same instance from version cache
            restrictions = version.getRestrictions();
            assertEquals(0, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultWagonManagerTest.java

            Artifact artifact = new DefaultArtifact(
                    "sample.group",
                    "sample-art",
                    VersionRange.createFromVersion("1.0"),
                    "scope",
                    "jar",
                    "classifier",
                    null);
            artifact.setFile(getTestFile("target/sample-art"));
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                restriction = new Restriction(lowerVersion, lowerBoundInclusive, upperVersion, upperBoundInclusive);
            }
    
            return restriction;
        }
    
        public static VersionRange createFromVersion(String version) {
            if (DefaultArtifact.empty(version)) {
                return null;
            }
            VersionRange cached = CACHE_VERSION.get(version);
            if (cached == null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                                // note: see MNG-3454. This causes a problem, but fixing it may break more.
                                artifact.setVersionRange(VersionRange.createFromVersion(relocation.getVersion()));
                                relocatedArtifact = artifact;
                                project.setVersion(relocation.getVersion());
                            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

                String type,
                String classifier,
                String inheritedScope) {
            VersionRange versionRange = null;
            if (version != null) {
                versionRange = VersionRange.createFromVersion(version);
            }
            return createArtifactX(groupId, artifactId, versionRange, type, classifier, scope, inheritedScope);
        }
    
        private Artifact createArtifactX(
                String groupId,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
Back to top