public boolean accept(Document doc) { String uinfo = doc.get(ArtifactInfo.UINFO); if (uinfo == null) { return true; } String[] r = ArtifactInfo.FS_PATTERN.split(uinfo); if (repositoryPolicy == RepositoryPolicy.SNAPSHOT) { return VersionUtils.isSnapshot(r[2]); } else if (repositoryPolicy == RepositoryPolicy.RELEASE) { return !VersionUtils.isSnapshot(r[2]); } else { return true; } } };
this.artifactId = artifactId; this.version = version; this.snapshot = VersionUtils.isSnapshot( version );
this.artifactId = artifactId; this.version = version; this.snapshot = VersionUtils.isSnapshot( version );
this.artifactId = artifactId; this.version = version; this.snapshot = VersionUtils.isSnapshot( version );
this.artifactId = artifactId; this.version = version; this.snapshot = VersionUtils.isSnapshot( version );
public void putVersionHit(StringVersion version, NexusNGArtifact versionHit) { versionHits.put(version, versionHit); if (VersionUtils.isSnapshot(versionHit.getVersion())) { if (latestSnapshotVersion == null || latestSnapshotVersion.compareTo(version) < 0) { latestSnapshot = versionHit; latestSnapshotVersion = version; } } else { if (latestReleaseVersion == null || latestReleaseVersion.compareTo(version) < 0) { latestRelease = versionHit; latestReleaseVersion = version; } } }