Skip to content

Instantly share code, notes, and snippets.

@motemen
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save motemen/9519772 to your computer and use it in GitHub Desktop.
Save motemen/9519772 to your computer and use it in GitHub Desktop.
lazy val root = project in file(".")
lazy val tasks = project in file("tasks") dependsOn(root)
// tasks/cliTask.scala
// run as: sbt 'tasks/runMain cliTask {args}'
import play.api.Play
import play.api.Play.current
object cliTask extends play.core.StaticApplication(new java.io.File(".")) {
def main(args: Array[String]) {
try {
} finally {
Play.stop()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment