Andrew Jackman
unread,Oct 18, 2011, 6:49:29 AM10/18/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to simple-build-tool
Hi there,
I'm using sbt 0.11 in Basic Configuration and have written a TaskKey
to package my deployable artefact.
I copy lots of stuff into a dir then zip up that dir.
So my task key in the build.sbt looks a bit like this:
TaskKey[Unit]("dist") <<= (baseDirectory, target, crossTarget,
scalaVersion, artifact in com.github.siasia.WebPlugin.packageWar) map
{
(theBase, targetDir, crossTargetDir, versionOfScala,
projectIdentifier, warArtifact) =>
... // move stuff into (targetDir / "dist")
val files: PathFinder = (targetDir / "dist") ** "*.*"
val mappings: Seq[(File, String)] = files x relativeTo(targetDir /
"dist")
IO.zip(mappings, targetDir / "dist.zip")
}
My problem is that some files have no extension, and when I change the
"*.*" to "*" in my declaration of "files", the dist target fails,
saying: [error] <blah blah> dist: No mapping for C:\dev\project\<my
project name>\target\dist
I don't understand what I need to do to get files without extension
packaged into my zip file.
Any help greatly appreciated.
Andrew