mirror of
https://github.com/sbt/sbt.git
synced 2026-10-08 02:53:10 +02:00
Fix mappings declaration in Howto/package to correctly call 'map'
This commit is contained in:
@@ -69,13 +69,13 @@ The ``artifactName`` setting controls the name of generated packages. See the :
|
||||
:type: setting
|
||||
|
||||
mappings in (Compile, packageBin) <+=
|
||||
baseDirectory { dir => ( dir / "example.txt") -> "out/example.txt" }
|
||||
baseDirectory map { dir => ( dir / "example.txt") -> "out/example.txt" }
|
||||
|
||||
The contents of a package are defined by the ``mappings`` task, of type ``Seq[(File,String)]``. The ``mappings`` task is a sequence of mappings from a file to include in the package to the path in the package. See :doc:`/Detailed-Topics/Mapping-Files` for convenience functions for generating these mappings. For example, to add the file ``in/example.txt`` to the main binary jar with the path "out/example.txt",
|
||||
|
||||
::
|
||||
|
||||
mappings in (Compile, packageBin) <+= baseDirectory { base =>
|
||||
mappings in (Compile, packageBin) <+= baseDirectory map { base =>
|
||||
(base / "in" / "example.txt") -> "out/example.txt"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user