public class MavenTimedSnapshotVersionMatcher extends AbstractVersionMatcher
VersionMatcher which understands Maven timestamped snapshots.| Modifier and Type | Class and Description |
|---|---|
static class |
MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision
Represents a Maven 2 snapshot version, which is either a regular snapshot
(for example: 1.0.2-SNAPSHOT) or a timestamped snapshot (for example:
1.0.2-20100925.223013-19)
|
| Constructor and Description |
|---|
MavenTimedSnapshotVersionMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(ModuleRevisionId askedMrid,
ModuleRevisionId foundMrid)
Indicates if this version matcher considers that the module revision found matches the asked
one.
|
static MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision |
computeIfSnapshot(java.lang.String revision)
Parses the passed
revision and returns a MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision, representing
that revision, if it is either a regular snapshot (for example: 1.0.2-SNAPSHOT) or a
timestamped snapshot (for example: 1.0.2-20100925.223013-19). |
boolean |
isDynamic(ModuleRevisionId askedMrid)
Indicates if the given asked ModuleRevisionId should be considered as dynamic for the current
VersionMatcher or not.
|
accept, compare, getName, getSettings, needModuleDescriptor, setName, setSettings, toStringpublic boolean isDynamic(ModuleRevisionId askedMrid)
VersionMatcheraskedMrid - the dependency module revision id as asked by a modulepublic boolean accept(ModuleRevisionId askedMrid, ModuleRevisionId foundMrid)
VersionMatcheraskedMrid - ModuleRevisionIdfoundMrid - ModuleRevisionIdpublic static MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision computeIfSnapshot(java.lang.String revision)
revision and returns a MavenTimedSnapshotVersionMatcher.MavenSnapshotRevision, representing
that revision, if it is either a regular snapshot (for example: 1.0.2-SNAPSHOT) or a
timestamped snapshot (for example: 1.0.2-20100925.223013-19).
If the passed revision isn't a snapshot revision, then this method returns nullrevision - The revision to parseCopyright ©2007-2024 The Apache Software Foundation, Licensed under Apache License, Version 2.0.