anshumans
anshumans

Reputation: 4095

How do I execute Scrooge from commandline?

I was able to include scrooge in my SBT project (the scrooge-sbt-plugin in my plugins.sbt as well as the library dependencies in my build.sbt), but I haven't been able to figure out how to execute scrooge from the commandline as listed here http://twitter.github.io/scrooge/CommandLine.html.

Upvotes: 3

Views: 1040

Answers (1)

user1043279
user1043279

Reputation:

A bit late to the party.

@partycoder was indeed right, however a bit more may help those who like myself aren't too sure.

Assuming your *.thrift files are located in src/main/thrift simply running sbt scrooge-gen will pick up the files and deposit them in target/src_managed/.

If your *.thrift files are not located in src/main/thrift and perhaps in src/main/resources/thrift, you can setscroogeThriftSourceFolder in you build.sbt using this example:

scroogeThriftSourceFolder in Compile <<= baseDirectory {
  base => base / "src/main/resources/thrift/"
}

This setting and others can be found here.

Upvotes: 4

Related Questions