Fix mappings declaration in Howto/package to correctly call 'map'

This commit is contained in:
Mark Harrah
2012-12-20 12:42:28 -05:00
parent fe7583318c
commit df317b3802
+2 -2
View File
@@ -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"
}