Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for addVersion (0.1 sec)

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

            if (versionConstraint.getRange() == null) {
                result.addVersion(versionConstraint.getVersion());
            } else {
                VersionRange.Bound lowerBound = versionConstraint.getRange().getLowerBound();
                if (lowerBound != null
                        && lowerBound.equals(versionConstraint.getRange().getUpperBound())) {
                    result.addVersion(lowerBound.getVersion());
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. cmd/xl-storage-free-version_test.go

    		},
    		MarkDeleted:      false,
    		NumVersions:      1,
    		SuccessorModTime: time.Time{},
    	}
    	// Add a version with local content
    	fatalErr(xl.AddVersion(fi))
    	report()
    
    	// Add null version with tiered content
    	tierfi := fi
    	tierfi.VersionID = ""
    	fatalErr(xl.AddVersion(tierfi))
    	report()
    	tierfi.TransitionStatus = lifecycle.TransitionComplete
    	tierfi.TransitionedObjName = mustGetUUID()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/ReleaseArtifactTransformation.java

        private ArtifactMetadata createMetadata(Artifact artifact) {
            Versioning versioning = new Versioning();
            // TODO Should this be changed for MNG-6754 too?
            versioning.updateTimestamp();
            versioning.addVersion(artifact.getVersion());
    
            if (artifact.isRelease()) {
                versioning.setRelease(artifact.getVersion());
            }
    
            return new ArtifactRepositoryMetadata(artifact, versioning);
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-utils_test.go

    	for i := 0; i < 5; i++ {
    		fi := basefi
    		fi.VersionID = mustGetUUID()
    		fi.DataDir = mustGetUUID()
    		fi.ModTime = basefi.ModTime.Add(time.Duration(i) * time.Second)
    		if err := xl.AddVersion(fi); err != nil {
    			t.Fatalf("%d: Failed to add version %v", i+1, err)
    		}
    
    		if i > 3 {
    			// Simulate transition of a version
    			transfi := fi
    			transfi.TransitionStatus = lifecycle.TransitionComplete
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2.go

    			x.versions = append(x.versions[:i], x.versions[i+1:]...)
    			if fi.MarkDeleted && (fi.VersionPurgeStatus().Empty() || (fi.VersionPurgeStatus() != Complete)) {
    				err = x.addVersion(ventry)
    			} else if fi.Deleted && uv.String() == emptyUUID {
    				return "", x.addVersion(ventry)
    			}
    			return "", err
    		case ObjectType:
    			if updateVersion && !fi.Deleted {
    				ver, err := x.getIdx(i)
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  6. cmd/xl-storage-format_test.go

    			ids := make([]string, size)
    			for i := 0; i < size; i++ {
    				fi.VersionID = mustGetUUID()
    				fi.DataDir = mustGetUUID()
    				ids[i] = fi.VersionID
    				fi.ModTime = fi.ModTime.Add(-time.Second)
    				xl.AddVersion(fi)
    			}
    			// Encode all. This is used for benchmarking.
    			enc, err := xl.AppendTo(nil)
    			if err != nil {
    				b.Fatal(err)
    			}
    			b.Logf("Serialized size: %d bytes", len(enc))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/VersionsMetadata.java

            Metadata metadata = new Metadata();
            metadata.setGroupId(artifact.getGroupId());
            metadata.setArtifactId(artifact.getArtifactId());
    
            Versioning versioning = new Versioning();
            versioning.addVersion(artifact.getBaseVersion());
            if (!artifact.isSnapshot()) {
                versioning.setRelease(artifact.getBaseVersion());
            }
            if ("maven-plugin".equals(artifact.getProperty(ArtifactProperties.TYPE, ""))) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. cmd/xl-storage-free-version.go

    		// deletion via scanner.
    		ver, err := x.getIdx(i)
    		if err != nil {
    			return err
    		}
    
    		if freeVersion, toFree := ver.ObjectV2.InitFreeVersion(fi); toFree {
    			return x.addVersion(freeVersion)
    		}
    		return nil
    	}
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 02 05:11:03 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/artifact/installer/DefaultArtifactInstaller.java

            }
    
            Versioning versioning = new Versioning();
            // TODO Should this be changed for MNG-6754 too?
            versioning.updateTimestamp();
            versioning.addVersion(artifact.getBaseVersion());
            if (artifact.isRelease()) {
                versioning.setRelease(artifact.getBaseVersion());
            }
            artifact.addMetadata(new ArtifactRepositoryMetadata(artifact, versioning));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2_test.go

    			}},
    		},
    		MarkDeleted:      false,
    		Data:             data,
    		NumVersions:      1,
    		SuccessorModTime: time.Time{},
    	}
    
    	failOnErr(xl.AddVersion(fi))
    
    	fi.VersionID = mustGetUUID()
    	fi.DataDir = mustGetUUID()
    	fi.Data = data2
    	failOnErr(xl.AddVersion(fi))
    
    	serialized, err := xl.AppendTo(nil)
    	failOnErr(err)
    	// Roundtrip data
    	var xl2 xlMetaV2
    	failOnErr(xl2.Load(serialized))
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
Back to top