test for artifact moduleName fix

This commit is contained in:
Mark Harrah 2011-07-31 17:00:50 -04:00
parent 93ac92fee7
commit bb898e5b38
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
name := "Demo"
moduleName := "asdf"
crossPaths := false
TaskKey[Unit]("check-name") <<= (moduleName, name, packageBin in Compile) map { (module, n, f) =>
val path = f.getAbsolutePath
assert(path contains module, "Path " + path + " did not contain module name " + module)
assert(!path.contains(n), "Path " + path + " contained " + n)
}

View File

@ -0,0 +1 @@
> check-name