Packages

o

de.gccc.jib

MappingsHelper

object MappingsHelper extends sbt.Mapper

A set of helper methods to simplify the writing of mappings

Linear Supertypes
Mapper, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MappingsHelper
  2. Mapper
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type FileMap = (File) ⇒ Option[File]
    Definition Classes
    Mapper
  2. type PathMap = (File) ⇒ Option[String]
    Definition Classes
    Mapper

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def abs: FileMap
    Definition Classes
    Mapper
  5. def allSubpaths(base: File): Traversable[(File, String)]
    Definition Classes
    Mapper
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val basic: PathMap
    Definition Classes
    Mapper
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def contentOf(baseDirectory: File, target: String, filter: (File) ⇒ Boolean): Seq[(File, String)]
  10. def contentOf(baseDirectory: File, target: String): Seq[(File, String)]
  11. 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

    Example:
    1. mappings in Universal ++= sourceDir("extra")
  12. def contentOf(baseDirectory: File): Seq[(File, String)]
    Definition Classes
    Mapper
  13. 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

    Example:
    1. mappings in Universal ++= directory("extra")
  14. def directory(baseDirectory: File): Seq[(File, String)]
    Definition Classes
    Mapper
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def fail: (Any) ⇒ Nothing
    Definition Classes
    Mapper
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flat(newDirectory: File): FileMap
    Definition Classes
    Mapper
  20. val flat: PathMap
    Definition Classes
    Mapper
  21. def flatRebase(newBase: String): PathMap
    Definition Classes
    Mapper
  22. 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

    Example:
    1. Filter all osgi bundles

      mappings in Universal ++= fromClasspath(
         (managedClasspath in Runtime).value,
         "osgi",
         artifact => artifact.`type` == "bundle"
      )
  23. 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

    Example:
    1. Add all test artifacts to a separated test folder

      mappings in Universal ++= fromClasspath((managedClasspath in Test).value, target = "test")
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def normalizeBase(base: String): String
    Definition Classes
    Mapper
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def rebase(oldBase: File, newBase: File): FileMap
    Definition Classes
    Mapper
  32. def rebase(oldBases: Iterable[File], newBase: File, zero: FileMap): FileMap
    Definition Classes
    Mapper
  33. def rebase(oldBase: File, newBase: String): PathMap
    Definition Classes
    Mapper
  34. def relativeTo(bases: Iterable[File], zero: PathMap): PathMap
    Definition Classes
    Mapper
  35. def relativeTo(base: File): PathMap
    Definition Classes
    Mapper
  36. def resolve(newDirectory: File): FileMap
    Definition Classes
    Mapper
  37. def selectSubpaths(base: File, filter: FileFilter): Traversable[(File, String)]
    Definition Classes
    Mapper
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def total[A, B](f: (A) ⇒ B): (A) ⇒ Some[B]
    Definition Classes
    Mapper
  41. def transparent: (Any) ⇒ Option[Nothing]
    Definition Classes
    Mapper
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Mapper

Inherited from AnyRef

Inherited from Any

Ungrouped