Package org.apache.ivy.plugins.latest
Class WorkspaceLatestStrategy
- java.lang.Object
-
- org.apache.ivy.plugins.latest.AbstractLatestStrategy
-
- org.apache.ivy.plugins.latest.WorkspaceLatestStrategy
-
- All Implemented Interfaces:
LatestStrategy
public class WorkspaceLatestStrategy extends AbstractLatestStrategy
A strategy which delegate to another strategy, unless for the latest and working revisions which are considered as superior to any other revision.NB : it is for internal usage of Ivy only!
-
-
Constructor Summary
Constructors Constructor Description WorkspaceLatestStrategy(LatestStrategy delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ArtifactInfo>
sort(ArtifactInfo[] infos)
Sorts the given artifacts info from the oldest one to the latest one.-
Methods inherited from class org.apache.ivy.plugins.latest.AbstractLatestStrategy
findLatest, getName, setName, toString
-
-
-
-
Constructor Detail
-
WorkspaceLatestStrategy
public WorkspaceLatestStrategy(LatestStrategy delegate)
-
-
Method Detail
-
sort
public java.util.List<ArtifactInfo> sort(ArtifactInfo[] infos)
Description copied from interface:LatestStrategy
Sorts the given artifacts info from the oldest one to the latest one. The definition of 'latest' depends on the strategy itself. Given artifacts info are all good candidate.- Parameters:
infos
- ArtifactInfo[]- Returns:
- List<ArtifactInfo>
-
-