Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for parseVersionConstraint (0.13 sec)

  1. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

            c = versionParser.parseVersionConstraint("[1.0],[2.0],[3.0]");
            assertContains(c, "1.0", "2.0", "3.0");
            assertNotContains(c, "1.5");
    
            c = versionParser.parseVersionConstraint("[1,3),(3,5)");
            assertContains(c, "1", "2", "4");
            assertNotContains(c, "3", "5");
    
            c = versionParser.parseVersionConstraint("[1,3),(3,)");
            assertContains(c, "1", "2", "4");
            assertNotContains(c, "3");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/VersionConstraint.java

     * {@linkplain org.apache.maven.api.services.VersionParser} service.
     *
     * @see Version
     * @see VersionRange
     * @see org.apache.maven.api.services.VersionParser#parseVersionConstraint(String)
     * @see org.apache.maven.api.Session#parseVersionConstraint(String)
     * @since 4.0.0
     */
    @Experimental
    public interface VersionConstraint {
        /**
         * Returns the range of this constraint, or {@code null} if none.
         * <p>
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

        }
    
        public static boolean checkSnapshot(String version) {
            return version.endsWith(SNAPSHOT) || SNAPSHOT_TIMESTAMP.matcher(version).matches();
        }
    
        @Override
        public VersionConstraint parseVersionConstraint(String constraint) {
            requireNonNull(constraint, "constraint");
            return new DefaultVersionConstraint(versionScheme, constraint);
        }
    
        static class DefaultVersion implements Version {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProject.java

                    }
                    return classifier;
                }
    
                @Override
                public VersionConstraint getVersionConstraint() {
                    return session.parseVersionConstraint(dependency.getVersion());
                }
    
                @Override
                public String getExtension() {
                    return getType().getExtension();
                }
    
                @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

            VersionRangeResult result = new VersionRangeResult(request);
    
            VersionConstraint versionConstraint;
            try {
                versionConstraint =
                        versionScheme.parseVersionConstraint(request.getArtifact().getVersion());
            } catch (InvalidVersionSpecificationException e) {
                result.addException(e);
                throw new VersionRangeResolutionException(result);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * Shortcut for {@code getService(VersionParser.class).parseVersionConstraint(...)}.
         *
         * @param versionConstraint the version string to parse
         * @return the version constraint parsed from the given string
         * @throws org.apache.maven.api.services.VersionParserException if the parsing failed
         * @see org.apache.maven.api.services.VersionParser#parseVersionConstraint(String)
         */
        @Nonnull
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilderFactory.java

                    throw new IllegalArgumentException("ranges not supported by this parser");
                }
    
                @Override
                public VersionConstraint parseVersionConstraint(String constraint) {
                    throw new IllegalArgumentException("constraint not supported by this parser");
                }
    
                @Override
                public boolean isSnapshot(String version) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top