Skip to content

Instantly share code, notes, and snippets.

@al3x
Created November 24, 2009 21:42
Show Gist options
  • Select an option

  • Save al3x/242257 to your computer and use it in GitHub Desktop.

Select an option

Save al3x/242257 to your computer and use it in GitHub Desktop.
lazy val thrift = task {
val javaDirectoryPath = "src/main/java"
val rubyDirectoryPath = "src/main/ruby"
val thriftFile = "src/main/thrift/YourThriftDealie.thrift"
"thrift --gen java -o %s %s".format(javaDirectoryPath, thriftFile) ! log
"thrift --gen rb -o %s %s".format(rubyDirectoryPath, thriftFile) ! log
None
} describedAs("Build Thrift stuff.")
override def compileAction = super.compileAction dependsOn(thrift)
override def compileOrder = CompileOrder.JavaThenScala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment