FIX #1972 add regression test

This commit is contained in:
Nepomuk Seiler 2018-08-22 17:18:54 +02:00
parent d08e40bdba
commit 4b3b01b959
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,16 @@
name := "Mappings Test"
version := "0.2"
mappings in (Compile, packageBin) ++= {
val test = file("test")
Seq(
test -> "test1",
test -> "test2"
)
}
lazy val unzipPackage = taskKey[Unit]("extract jar file")
unzipPackage := {
IO.unzip((packageBin in Compile).value, target.value / "extracted")
}

View File

@ -0,0 +1,3 @@
> unzipPackage
$ exists target/extracted/test2
$ exists target/extracted/test1