object MappingsHelper extends sbt.Mapper
A set of helper methods to simplify the writing of mappings
- Alphabetic
- By Inheritance
- MappingsHelper
- Mapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- Definition Classes
- Mapper
-
def
allSubpaths(base: File): Traversable[(File, String)]
- Definition Classes
- Mapper
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
basic: PathMap
- Definition Classes
- Mapper
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def contentOf(baseDirectory: File, target: String, filter: (File) ⇒ Boolean): Seq[(File, String)]
- def contentOf(baseDirectory: File, target: String): Seq[(File, String)]
-
def
contentOf(sourceDir: String): Seq[(File, String)]
It lightens the build file if one wants to give a string instead of file.
It lightens the build file if one wants to give a string instead of file.
- sourceDir
as string representation
- returns
mappings
mappings in Universal ++= sourceDir("extra")
Example: -
def
contentOf(baseDirectory: File): Seq[(File, String)]
- Definition Classes
- Mapper
-
def
directory(sourceDir: String): Seq[(File, String)]
It lightens the build file if one wants to give a string instead of file.
It lightens the build file if one wants to give a string instead of file.
- returns
mappings
mappings in Universal ++= directory("extra")
Example: -
def
directory(baseDirectory: File): Seq[(File, String)]
- Definition Classes
- Mapper
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fail: (Any) ⇒ Nothing
- Definition Classes
- Mapper
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flat(newDirectory: File): FileMap
- Definition Classes
- Mapper
-
val
flat: PathMap
- Definition Classes
- Mapper
-
def
flatRebase(newBase: String): PathMap
- Definition Classes
- Mapper
-
def
fromClasspath(entries: Seq[sbt.Attributed[File]], target: String, includeArtifact: (sbt.Artifact) ⇒ Boolean, includeOnNoArtifact: Boolean = false): Seq[(File, String)]
Create mappings from your classpath.
Create mappings from your classpath. For example if you want to add additional dependencies, like test or model. You can also filter the artifacts that should be mapped to mappings.
- entries
from where mappings should be created from
- target
folder, e.g.
model. Must not end with a slash- includeArtifact
function to determine if an artifact should result in a mapping
- includeOnNoArtifact
default is false. When there's no Artifact meta data remove it
Filter all osgi bundles
mappings in Universal ++= fromClasspath( (managedClasspath in Runtime).value, "osgi", artifact => artifact.`type` == "bundle" )
Example: -
def
fromClasspath(entries: Seq[sbt.Attributed[File]], target: String): Seq[(File, String)]
Create mappings from your classpath.
Create mappings from your classpath. For example if you want to add additional dependencies, like test or model.
- returns
a list of mappings
Add all test artifacts to a separated test folder
mappings in Universal ++= fromClasspath((managedClasspath in Test).value, target = "test")
Example: -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
- Definition Classes
- Mapper
-
def
rebase(oldBases: Iterable[File], newBase: File, zero: FileMap): FileMap
- Definition Classes
- Mapper
-
def
rebase(oldBase: File, newBase: String): PathMap
- Definition Classes
- Mapper
-
def
relativeTo(bases: Iterable[File], zero: PathMap): PathMap
- Definition Classes
- Mapper
-
def
relativeTo(base: File): PathMap
- Definition Classes
- Mapper
-
def
resolve(newDirectory: File): FileMap
- Definition Classes
- Mapper
-
def
selectSubpaths(base: File, filter: FileFilter): Traversable[(File, String)]
- Definition Classes
- Mapper
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
total[A, B](f: (A) ⇒ B): (A) ⇒ Some[B]
- Definition Classes
- Mapper
-
def
transparent: (Any) ⇒ Option[Nothing]
- Definition Classes
- Mapper
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )