mirror of https://github.com/sbt/sbt.git
FIX #1972 add regression test
This commit is contained in:
parent
d08e40bdba
commit
4b3b01b959
|
|
@ -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")
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
> unzipPackage
|
||||
$ exists target/extracted/test2
|
||||
$ exists target/extracted/test1
|
||||
Loading…
Reference in New Issue