PathFinder not finding files without extension

25 views
Skip to first unread message

Andrew Jackman

unread,
Oct 18, 2011, 6:49:29 AM10/18/11
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

Zach Cox

unread,
Feb 3, 2012, 6:36:52 PM2/3/12
to simple-b...@googlegroups.com
Hi Andrew - did you ever find a solution to this problem? I'm getting a similar "No mapping for /path/to/my/file.ext" error and trying to track down what it even means.

Thanks,
Zach
Reply all
Reply to author
Forward
0 new messages