Thrift v1.2.0 Mix.Tasks.Compile.Thrift

Generate Erlang source files from .thrift schema files.

When this task runs, it first checks the modification times of all source files that were generated by the set of .thrift files. If the generated files are older than the .thrift file that generated them, this task will skip regenerating them.

Command line options

  • --force - forces compilation regardless of modification times

Configuration

  • :thrift_files - list of .thrift schema files to compile

  • :thrift_output - output directory into which the generated Erlang source file will be generated. Defaults to "src".

  • :thrift_options - list of additional options that will be passed to the Thrift compiler.

  • :thrift_version - thrift compiler Version requirement

Summary

Functions

Callback implementation for c:Mix.Task.run/1

Functions

run(args)

Specs

run(OptionParser.argv) :: :ok | :noop

Callback implementation for c:Mix.Task.run/1.