mirror of https://github.com/sbt/sbt.git
Fixes #1973. Renames distinct to distinctName
This commit is contained in:
parent
eeb4614437
commit
4bae8b3acb
|
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
[@eed3si9n]: http://github.com/eed3si9n
|
||||||
|
[1973]: https://github.com/sbt/sbt/issues/1973
|
||||||
|
|
||||||
|
### Fixes with compatibility implications
|
||||||
|
|
||||||
|
### Improvements
|
||||||
|
|
||||||
|
- Renames `distinct` method on `PathFinder` to `distinctName`. [#1973][1973] by [@eed3si9n][@eed3si9n]
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
@ -173,7 +173,13 @@ sealed abstract class PathFinder {
|
||||||
* Create a PathFinder from this one where each path has a unique name.
|
* Create a PathFinder from this one where each path has a unique name.
|
||||||
* A single path is arbitrarily selected from the set of paths with the same name.
|
* A single path is arbitrarily selected from the set of paths with the same name.
|
||||||
*/
|
*/
|
||||||
def distinct: PathFinder = PathFinder { get.map(p => (p.asFile.getName, p)).toMap.values }
|
def distinctName: PathFinder = PathFinder { get.map(p => (p.asFile.getName, p)).toMap.values }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Same as <code>distinctName</code>.
|
||||||
|
*/
|
||||||
|
@deprecated("Use distinctName", "0.13.9")
|
||||||
|
def distinct: PathFinder = distinctName
|
||||||
|
|
||||||
/** Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.*/
|
/** Constructs a string by evaluating this finder, converting the resulting Paths to absolute path strings, and joining them with the platform path separator.*/
|
||||||
final def absString = Path.makeString(get)
|
final def absString = Path.makeString(get)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue