Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getBuildNumber (0.12 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java

            }
        }
    
        private static int getBuildNumber(Metadata metadata) {
            int number = 0;
    
            Versioning versioning = metadata.getVersioning();
            if (versioning != null) {
                Snapshot snapshot = versioning.getSnapshot();
                if (snapshot != null && snapshot.getBuildNumber() > 0) {
                    number = snapshot.getBuildNumber();
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java

            Snapshot snapshot = versioning.getSnapshot();
            if (snapshot != null) {
                if (snapshot.getTimestamp() != null && snapshot.getBuildNumber() > 0) {
                    String newVersion = snapshot.getTimestamp() + "-" + snapshot.getBuildNumber();
                    version = baseVersion.replace(Artifact.SNAPSHOT_VERSION, newVersion);
                } else {
                    version = baseVersion;
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/RemoteSnapshotMetadataTest.java

                    new RemoteSnapshotMetadata(new DefaultArtifact("a:b:1-SNAPSHOT"), new Date(), null);
            metadata.merge(new Metadata());
    
            int buildNumber = metadata.metadata.getVersioning().getSnapshot().getBuildNumber();
            assertEquals(1, buildNumber);
        }
    
        @Test
        void buildNumberSet() {
            RemoteSnapshotMetadata metadata =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

                    + artifactVersion.getMinorVersion() + "', '" + artifactVersion.getIncrementalVersion() + "', '"
                    + artifactVersion.getBuildNumber() + "', '" + artifactVersion.getQualifier() + "'), ";
            assertEquals(major, artifactVersion.getMajorVersion(), parsed + "check major 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)
  6. api/maven-api-metadata/src/main/mdo/metadata.mdo

                            changed = true;
                            updateSnapshotVersions = true;
                        }
                        if ( s.getBuildNumber() != snapshot.getBuildNumber() )
                        {
                            s.setBuildNumber( snapshot.getBuildNumber() );
                            changed = true;
                        }
                        if ( s.isLocalCopy() != snapshot.isLocalCopy() )
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed May 15 17:32:27 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                String version = artifact.getVersion();
                if (snapshot.getTimestamp() != null && snapshot.getBuildNumber() > 0) {
                    String qualifier = snapshot.getTimestamp() + '-' + snapshot.getBuildNumber();
                    version = version.substring(0, version.length() - SNAPSHOT.length()) + qualifier;
                }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ArtifactVersion.java

     * compares two versions.
     *
     */
    public interface ArtifactVersion extends Comparable<ArtifactVersion> {
        int getMajorVersion();
    
        int getMinorVersion();
    
        int getIncrementalVersion();
    
        int getBuildNumber();
    
        String getQualifier();
    
        void parseVersion(String version);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            return minorVersion != null ? minorVersion : 0;
        }
    
        public int getIncrementalVersion() {
            return incrementalVersion != null ? incrementalVersion : 0;
        }
    
        public int getBuildNumber() {
            return buildNumber != null ? buildNumber : 0;
        }
    
        public String getQualifier() {
            return qualifier;
        }
    
        public final void parseVersion(String version) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top