diff options
author | Jie Dai <jied@google.com> | 2014-04-21 14:29:03 -0700 |
---|---|---|
committer | Diego GarcĂa <xaethos@google.com> | 2014-04-23 09:27:07 -0700 |
commit | a0a4f14521bd29a472d51fb7c4c5c45a82643453 (patch) | |
tree | fc731e2fc629d7f67b0cdb5ee5e529d8b363c94a /java | |
parent | ea68d73c08b3b9319faef8ef9cd283e773a6ef20 (diff) | |
download | external_protobuf-a0a4f14521bd29a472d51fb7c4c5c45a82643453.zip external_protobuf-a0a4f14521bd29a472d51fb7c4c5c45a82643453.tar.gz external_protobuf-a0a4f14521bd29a472d51fb7c4c5c45a82643453.tar.bz2 |
Adds --ignore_service nano proto compiler flag
Nano proto compiler normally throws an error if any service is
defined. If --ignore-services=true is set, no error is thrown and the
service is simply skipped.
Change-Id: Id82583555085cc55550d03a485d3f0189885240b
Diffstat (limited to 'java')
-rw-r--r-- | java/README.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/README.txt b/java/README.txt index f958d14..f922c4b 100644 --- a/java/README.txt +++ b/java/README.txt @@ -475,6 +475,7 @@ java_multiple_files -> true or false java_nano_generate_has -> true or false [DEPRECATED] optional_field_style -> default or accessors enum_style -> c or java +ignore_services -> true or false java_package: java_outer_classname: @@ -580,6 +581,13 @@ enum_style={c,java} (default: c) compiler inlines all referenced enum constants into the call sites, the interface remains unused and can be removed by ProGuard. +ignore_services={true,false} (default: false) + Skips services definitions. + + Nano doesn't support services. By default, if a service is defined + it will generate a compilation error. If this flag is set to true, + services will be silently ignored, instead. + To use nano protobufs within the Android repo: |