object Path extends Mapper
- Alphabetic
- By Inheritance
- Path
- Mapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abs: FileMap
Pairs a File with the absolute File obtained by calling
getAbsoluteFile.Pairs a File with the absolute File obtained by calling
getAbsoluteFile. Note that this usually means that relative files are resolved against the current working directory.- Definition Classes
- Mapper
- def absolute(file: File): File
- def allSubpaths(base: File): Traversable[(File, String)]
Selects all descendants of
basedirectory and maps them to a path relative tobase.Selects all descendants of
basedirectory and maps them to a path relative tobase.baseitself is not included.- Definition Classes
- Mapper
- def apply(f: String): RichFile
- def apply(f: File): RichFile
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val basic: PathMap
A path mapper that pairs a File with the path returned by calling
getPathon it.A path mapper that pairs a File with the path returned by calling
getPathon it.- Definition Classes
- Mapper
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contentOf(baseDirectory: File): Seq[(File, String)]
return a Seq of mappings excluding the directory itself.
return a Seq of mappings excluding the directory itself.
- baseDirectory
The directory that should be turned into a mappings sequence.
- returns
mappings - The
basicDirectory's contents exlcudingbasicDirectoryitself
- Definition Classes
- Mapper
In order to create mappings for a static directory "extra" add
mappings ++= contentOf(baseDirectory.value / "extra")The resulting mappings sequence will look something like this
File(baseDirectory/extras/file1) -> "file1" File(baseDirectory/extras/file2) -> "file2" ...
, Add a static directory "extra" and re-map the destination to a different path
mappings ++= contentOf(baseDirectory.value / "extra").map { case (src, destination) => src -> s"new/path/destination" }
Examples: - def directory(baseDirectory: File): Seq[(File, String)]
return a Seq of mappings which effect is to add a whole directory in the generated package
return a Seq of mappings which effect is to add a whole directory in the generated package
- baseDirectory
The directory that should be turned into a mappings sequence.
- returns
mappings The
baseDirectoryand all of its contents
- Definition Classes
- Mapper
In order to create mappings for a static directory "extra" add
mappings ++= directory(baseDirectory.value / "extra")The resulting mappings sequence will look something like this
File(baseDirectory/extras) -> "extras" File(baseDirectory/extras/file1) -> "extras/file1" File(baseDirectory/extras/file2) -> "extras/file2" ...
Example: - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail: (Any) => Nothing
A mapper that throws an exception for any input.
A mapper that throws an exception for any input. This is useful as the last mapper in a pipeline to ensure every input gets mapped.
- Definition Classes
- Mapper
- def fileProperty(name: String): File
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flat(newDirectory: File): FileMap
Constructs a FileMap that pairs a file with a file with the same name in
newDirectory.Constructs a FileMap that pairs a file with a file with the same name in
newDirectory. For example, ifnewDirectoryis/a/b, then/r/s/t/d.txtwill be paired with/a/b/d.txt- Definition Classes
- Mapper
- val flat: PathMap
A path mapper that pairs a File with its name.
A path mapper that pairs a File with its name. For example,
/x/y/z.txtgets paired withz.txt.- Definition Classes
- Mapper
- def flatRebase(newBase: String): PathMap
A path mapper that pairs a File with a path constructed from
newBaseand the file's name.A path mapper that pairs a File with a path constructed from
newBaseand the file's name. For example, ifnewBase = /new/a/, then/old/x/z.txtgets paired with/new/a/z.txt.- Definition Classes
- Mapper
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeString(paths: Seq[File], sep: String): String
- def makeString(paths: Seq[File]): String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newerThan(a: File, b: File): Boolean
- def normalizeBase(base: String): String
- Definition Classes
- Mapper
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rebase(oldBase: File, newBase: File): FileMap
Produces a File mapper that pairs a descendant of
oldBasewith a file innewBasethat preserving the relative path of the original file againstoldBase.Produces a File mapper that pairs a descendant of
oldBasewith a file innewBasethat preserving the relative path of the original file againstoldBase. For example, ifoldBaseis/old/x/andnewBaseis/new/a/,/old/x/y/z.txtgets paired with/new/a/y/z.txt.- Definition Classes
- Mapper
- def rebase(oldBases: Iterable[File], newBase: File, zero: FileMap = transparent): FileMap
- Definition Classes
- Mapper
- def rebase(oldBase: File, newBase: String): PathMap
A path mapper that pairs a descendent of
oldBasewithnewBaseprepended to the path relative tooldBase.A path mapper that pairs a descendent of
oldBasewithnewBaseprepended to the path relative tooldBase. For example, ifoldBase = /old/x/andnewBase = new/a/, then/old/x/y/z.txtgets paired withnew/a/y/z.txt.- Definition Classes
- Mapper
- def relativeTo(bases: Iterable[File], zero: PathMap = transparent): PathMap
- Definition Classes
- Mapper
- def relativeTo(base: File): PathMap
A path mapper that pairs a File with its path relative to
base.A path mapper that pairs a File with its path relative to
base. If the File is not a descendant ofbase, it is not handled (None is returned by the mapper).- Definition Classes
- Mapper
- def resolve(newDirectory: File): FileMap
Returns a FileMap that resolves a relative File against
newDirectoryand pairs the original File with the resolved File.Returns a FileMap that resolves a relative File against
newDirectoryand pairs the original File with the resolved File. The mapper ignores absolute files.- Definition Classes
- Mapper
- def selectSubpaths(base: File, filter: FileFilter): Traversable[(File, String)]
Selects descendants of
basedirectory matchingfilterand maps them to a path relative tobase.Selects descendants of
basedirectory matchingfilterand maps them to a path relative tobase.baseitself is not included.- Definition Classes
- Mapper
- val sep: Char
The separator character of the platform.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toURLs(files: Seq[File]): Array[URL]
- def total[A, B](f: (A) => B): (A) => Some[B]
A mapper that is defined on all inputs by the function
f.A mapper that is defined on all inputs by the function
f.- Definition Classes
- Mapper
- def transparent: (Any) => Option[Nothing]
A mapper that ignores all inputs.
A mapper that ignores all inputs.
- Definition Classes
- Mapper
- def userHome: File
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()