Created
July 24, 2013 06:03
-
-
Save suls/6068364 to your computer and use it in GitHub Desktop.
sample sbt task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object Build extends sbt.Build { | |
lazy val fooUtil = Project( | |
// .. | |
) | |
val sample = TaskKey[Unit]("sample-task") | |
val sampleTask = sample := { | |
println("in sample-task") | |
(unmanagedSourceDirectories in (fooUtil, Compile)) map {(ds: Seq[java.io.File]) => | |
println(ds.mkString(", ")) | |
} | |
println("sample-task done ..") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment