Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for parseVersionRange (0.15 sec)

  1. api/maven-api-core/src/main/java/org/apache/maven/api/VersionRange.java

     * {@linkplain org.apache.maven.api.services.VersionParser} service.
     *
     * @see Version
     * @see VersionConstraint
     * @see org.apache.maven.api.services.VersionParser#parseVersionRange(String)
     * @see org.apache.maven.api.Session#parseVersionRange(String)
     * @since 4.0.0
     */
    @Experimental
    public interface VersionRange {
        /**
         * Determines whether the specified version is contained within this range.
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Aug 27 21:13:34 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionRangeTest.java

            try {
                return versionParser.parseVersionRange(range);
            } catch (VersionParserException e) {
                throw new AssertionError(range + " should be valid but failed to parse due to: " + e.getMessage(), e);
            }
        }
    
        private void parseInvalid(String range) {
            try {
                versionParser.parseVersionRange(range);
                fail(range + " should be invalid");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

            } catch (InvalidVersionSpecificationException e) {
                throw new RuntimeException(e);
            }
        }
    
        private VersionRange parseVersionRange(String spec) {
            try {
                return versionScheme.parseVersionRange(spec);
            } catch (InvalidVersionSpecificationException e) {
                throw new RuntimeException(e);
            }
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelVersionParser.java

        @Override
        public Version parseVersion(String version) {
            requireNonNull(version, "version");
            return new DefaultVersion(versionScheme, version);
        }
    
        @Override
        public VersionRange parseVersionRange(String range) {
            requireNonNull(range, "range");
            return new DefaultVersionRange(versionScheme, range);
        }
    
        @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
    - 9.5K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/VersionParser.java

         * @return the parsed version range, never {@code null}
         * @throws VersionParserException if the range specification violates the syntax rules of this scheme
         */
        @Nonnull
        VersionRange parseVersionRange(@Nonnull String range);
    
        /**
         * Parses the specified version constraint specification, for example "1.0" or "[1.0,2.0)".
         *
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * <p>
         * Shortcut for {@code getService(VersionParser.class).parseVersionRange(...)}.
         *
         * @param versionRange the version string to parse
         * @return the version range parsed from the given string
         * @throws org.apache.maven.api.services.VersionParserException if the parsing failed
         * @see org.apache.maven.api.services.VersionParser#parseVersionRange(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

                            return version.compareTo(o.asString());
                        }
                    };
                }
    
                @Override
                public VersionRange parseVersionRange(String range) {
                    throw new IllegalArgumentException("ranges not supported by this parser");
                }
    
                @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            if (version != null && parent.getVersion() != null && !version.equals(parent.getVersion())) {
                try {
                    VersionRange parentRange = versionParser.parseVersionRange(parent.getVersion());
                    if (!parentRange.contains(versionParser.parseVersion(version))) {
                        // version skew drop back to resolution from the repository
                        return null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top