diff options
author | Max Cai <maxtroy@google.com> | 2014-01-14 14:54:48 +0000 |
---|---|---|
committer | Max Cai <maxtroy@google.com> | 2014-01-14 15:03:05 +0000 |
commit | bc8eec3d2b5c87cf95a515593700ba56c010920c (patch) | |
tree | 9bbf763223a398a43e6d5dc7d6d6775499d9c78f /java/README.txt | |
parent | 0eecf0b83f65a3d2741449fd1ebdd4154e879573 (diff) | |
download | protobuf-bc8eec3d2b5c87cf95a515593700ba56c010920c.tar.gz protobuf-bc8eec3d2b5c87cf95a515593700ba56c010920c.tar.bz2 protobuf-bc8eec3d2b5c87cf95a515593700ba56c010920c.zip |
Allow whitespace in nano codegen options.
So we don't need to keep all option in a single line in the .mk files.
Change-Id: I786b879b334cac4cd13b32fabcb76efe53b4ac80
Diffstat (limited to 'java/README.txt')
-rw-r--r-- | java/README.txt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/java/README.txt b/java/README.txt index ced78d23..0646c232 100644 --- a/java/README.txt +++ b/java/README.txt @@ -580,9 +580,9 @@ To use nano protobufs within the Android repo: LOCAL_STATIC_JAVA_LIBRARIES variable, so you don't need to. - Set 'LOCAL_PROTO_JAVA_OUTPUT_PARAMS := ...' in your local .mk file for any command-line options you need. Use commas to join multiple - options. Write all options on the same line; avoid backslash-newline - or '+=', because they will introduce spaces in the middle of your - options and the generator is not prepared to handle them. + options. In the nano flavor only, whitespace surrounding the option + names and values are ignored, so you can use backslash-newline or + '+=' to structure your make files nicely. - The options will be applied to *all* proto files in LOCAL_SRC_FILES when you build a Java library or package. In case different options are needed for different proto files, build separate Java libraries @@ -603,10 +603,9 @@ To use nano protobufs outside of Android repo: - Invoke with --javanano_out, e.g.: ./protoc '--javanano_out=\ -java_package=src/proto/simple-data.proto|my_package,\ -java_outer_classname=src/proto/simple-data.proto|OuterName:\ -.' src/proto/simple-data.proto - + java_package=src/proto/simple-data.proto|my_package,\ + java_outer_classname=src/proto/simple-data.proto|OuterName\ + :.' src/proto/simple-data.proto Contributing to nano: |