Thrift v1.3.2 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_executable - thrift compiler executable. Defaults to "thrift".

  • :thrift_version - thrift compiler Version requirement

Summary

Functions

A task needs to implement run which receives a list of command line args

Functions

run(args)
run(OptionParser.argv) :: :ok

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.