Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for parseVersion (0.07 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java

                return filters.get(0);
            } else {
                return ChainedVersionFilter.newInstance(filters);
            }
        }
    
        private Version parseVersion(String spec) {
            try {
                return versionScheme.parseVersion(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)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

                    List<Version> versions = new ArrayList<>();
                    for (Map.Entry<String, ArtifactRepository> v : versionIndex.entrySet()) {
                        try {
                            Version ver = versionScheme.parseVersion(v.getKey());
                            if (versionConstraint.containsVersion(ver)) {
                                versions.add(ver);
                                result.setRepository(ver, v.getValue());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                buffer.append("]");
                return buffer.toString();
            }
        }
    
        public ComparableVersion(String version) {
            parseVersion(version);
        }
    
        @SuppressWarnings("checkstyle:innerassignment")
        public final void parseVersion(String version) {
            this.value = version;
    
            items = new ListItem();
    
            version = version.toLowerCase(Locale.ENGLISH);
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         *
         * @param version the version string to parse
         * @return the version parsed from the given string
         * @throws org.apache.maven.api.services.VersionParserException if the parsing failed
         * @see org.apache.maven.api.services.VersionParser#parseVersion(String)
         */
        @Nonnull
        Version parseVersion(@Nonnull String version);
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 16:43:07 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  5. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

                }
            } finally {
                Locale.setDefault(orig);
            }
        }
    
        @Test
        void testReuse() {
            ComparableVersion c1 = new ComparableVersion("1");
            c1.parseVersion("2");
    
            Comparable<?> c2 = newComparable("2");
    
            assertEquals(c1, c2, "reused instance should be equivalent to new instance");
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionTest.java

        private final ModelVersionParser modelVersionParser = new DefaultModelVersionParser(new GenericVersionScheme());
    
        protected Version newVersion(String version) {
            return modelVersionParser.parseVersion(version);
        }
    
        @Test
        void testEmptyVersion() {
            assertOrder(X_EQ_Y, "0", "");
        }
    
        @Test
        void testNumericOrdering() {
            assertOrder(X_LT_Y, "2", "10");
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilderFactory.java

            // in real-life this parser should not be used, but replaced with a proper one
            return new ModelVersionParser() {
                @Override
                public Version parseVersion(String version) {
                    requireNonNull(version, "version");
                    return new Version() {
                        @Override
                        public String asString() {
    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