thrifty/thrifty-compiler
Ben Bader 34caf19462 Stop printing the working path in ThriftyCompiler (#137) 2017-03-09 17:07:21 -08:00
..
src/main/java/com/microsoft/thrifty/compiler Stop printing the working path in ThriftyCompiler (#137) 2017-03-09 17:07:21 -08:00
README.md Add support for generating Parcelable implementations 2016-03-05 14:40:38 -08:00
TestThrift.thrift Implement most of annotation parsing 2015-12-27 14:49:09 -08:00
build.gradle Apply codecov.io configuration (#134) 2017-03-09 14:21:28 -08:00
testcase.thrift Assign copyright to Microsoft, conform with MS OSS requirements 2016-02-22 17:19:38 -08:00

README.md

thrifty-compiler

A command-line executable that bundles the parser and code-generator together.

Basic usage:

java -jar thrifty-compiler.jar \
        --out=path/to/output \
        --path=thrift/search/path \
        --path=other/search/path \
        a.thrift \
        b.thrift
Option Description
--out=[dir] Required. Specifies where generated Java files go
--path=[dir] Optional. Adds a directory to a search path, used for locating included thrift files.
--use-android-annotations Optional. When given, Android Support Annotations will be added for generated fields (@NonNull and @Nullable).
--parcelable Optional. Structs, unions, and exceptions will have implementations of Parcelable generated.
--list-type=[classname] A java.util.List implementation to be used wherever lists are instantiated in generated code.
--set-type=[classname] A java.util.Set implementation to be used wherever sets are instantiated in generated code.
--map-type=[classname] A java.util.Map implementation, as above.