Permalink
Browse files

add gc task

  • Loading branch information...
1 parent a70b914 commit f2a7b4e16e0657d99abfa736d6b5404afdf5a9d4 @ymasory committed Jun 9, 2012
Showing with 19 additions and 0 deletions.
  1. +19 −0 project/build.scala
View
19 project/build.scala
@@ -0,0 +1,19 @@
+import sbt._
+import Keys._
+
+object build extends Build {
+
+ val gcsettings = Defaults.defaultSettings
+
+ val gc = TaskKey[Unit]("gc", "runs garbage collector")
+ val gcTask = gc := {
+ println("requesting garbage collection")
+ System gc()
+ }
+
+ lazy val project = Project (
+ "project",
+ file("."),
+ settings = gcsettings ++ Seq(gcTask)
+ )
+}

0 comments on commit f2a7b4e

Please sign in to comment.