summaryrefslogtreecommitdiffstats
path: root/java/pom.xml
diff options
context:
space:
mode:
authorBrian Duff <bduff@google.com>2013-09-30 20:49:13 -0700
committerBrian Duff <bduff@google.com>2013-10-07 16:25:55 -0700
commit0b8579237336f221711a0aac42400eb31a58fed3 (patch)
treeac6553ae2998404642d43dfacd5d56a1a03412bf /java/pom.xml
parent9827c718c45cfa1744a3b0f8fc27dac9cd415603 (diff)
downloadexternal_protobuf-0b8579237336f221711a0aac42400eb31a58fed3.zip
external_protobuf-0b8579237336f221711a0aac42400eb31a58fed3.tar.gz
external_protobuf-0b8579237336f221711a0aac42400eb31a58fed3.tar.bz2
Add reftypes field generator option.
This option generates fields as reference types, and serializes based on nullness. Change-Id: Ic32e0eebff59d14016cc9a19e15a9bb08ae0bba5 Signed-off-by: Brian Duff <bduff@google.com>
Diffstat (limited to 'java/pom.xml')
-rw-r--r--java/pom.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/pom.xml b/java/pom.xml
index a34c164..1f43670 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -171,6 +171,12 @@
<arg value="../src/google/protobuf/unittest_enum_class_nano.proto" />
<arg value="../src/google/protobuf/unittest_enum_class_multiple_nano.proto" />
</exec>
+ <exec executable="../src/protoc">
+ <arg value="--javanano_out=optional_field_style=reftypes:target/generated-test-sources" />
+ <arg value="--proto_path=../src" />
+ <arg value="--proto_path=src/test/java" />
+ <arg value="../src/google/protobuf/unittest_reference_types_nano.proto" />
+ </exec>
</tasks>
<testSourceRoot>target/generated-test-sources</testSourceRoot>
<!--testSourceRoot>target/generated-test-sources/opt-space</testSourceRoot-->