public MavenVersion toSnapshot(String timestamp, String build) { if (build != null) timestamp += "-" + build; return toSnapshot(timestamp); }
public MavenVersion toSnapshot(String timestamp, String build) { if (build != null) timestamp += "-" + build; return toSnapshot(timestamp); }
public MavenVersion toSnapshot(String timestamp, String build) { if (build != null) timestamp += "-" + build; return toSnapshot(timestamp); }
public MavenVersion toSnapshot(String timestamp, String build) { if (build != null) timestamp += "-" + build; return toSnapshot(timestamp); }
public MavenVersion toSnapshot(long epoch, String build) { return toSnapshot(toDateStamp(epoch, build)); }
public MavenVersion toSnapshot(long epoch, String build) { return toSnapshot(toDateStamp(epoch, build)); }
public MavenVersion toSnapshot(long epoch, String build) { return toSnapshot(toDateStamp(epoch, build)); }
public MavenVersion toSnapshot(long epoch, String build) { return toSnapshot(toDateStamp(epoch, build)); }
@Override public void setBuild(long timestamp, String build) { timestamp = timestamp == 0 ? System.currentTimeMillis() : timestamp; if (build == null) { build = nextBuildNumber(); } this.build = build; snapshotVersion = revision.version.toSnapshot(timestamp, build); dateStamp = MavenVersion.toDateStamp(timestamp); }
@Override public void setBuild(long timestamp, String build) { timestamp = timestamp == 0 ? System.currentTimeMillis() : timestamp; if (build == null) { build = nextBuildNumber(); } this.build = build; snapshotVersion = revision.version.toSnapshot(timestamp, build); dateStamp = MavenVersion.toDateStamp(timestamp); }
public MavenVersion getVersion(Revision revision) throws Exception { RevisionMetadata metadata = getMetadata(revision); if (metadata.snapshot.timestamp == null || metadata.snapshot.buildNumber == null) { reporter.warning("Snapshot and/or buildnumber not set %s in %s", metadata.snapshot, revision); return null; } return revision.version.toSnapshot(metadata.snapshot.timestamp, metadata.snapshot.buildNumber); }
public MavenVersion getVersion(Revision revision) throws Exception { RevisionMetadata metadata = getMetadata(revision); if (metadata.snapshot.timestamp == null || metadata.snapshot.buildNumber == null) { reporter.warning("Snapshot and/or buildnumber not set %s in %s", metadata.snapshot, revision); return null; } return revision.version.toSnapshot(metadata.snapshot.timestamp, metadata.snapshot.buildNumber); }