diff options
author | Max Cai <maxtroy@google.com> | 2013-09-24 17:40:37 +0100 |
---|---|---|
committer | Max Cai <maxtroy@google.com> | 2013-09-25 19:44:27 +0100 |
commit | 26266cd4660ffe1f3d6015b715713ee654c5b936 (patch) | |
tree | 71d26d35515a268e6c81850d1dc33b7d7113886c /java/pom.xml | |
parent | e74fe623e115237968a3de1143d7cdb4df710858 (diff) | |
download | external_protobuf-26266cd4660ffe1f3d6015b715713ee654c5b936.zip external_protobuf-26266cd4660ffe1f3d6015b715713ee654c5b936.tar.gz external_protobuf-26266cd4660ffe1f3d6015b715713ee654c5b936.tar.bz2 |
Implement enum_style=java option.
This javanano_out command line option creates a container interface
at the normal place where the enum constants would reside, per enum
definition. The java_multiple_files flag would now affect the file-
scope enums with the shells. If the flag is true then file-scope
container interfaces are created in their own files.
Change-Id: Id52258fcff8d3dee9db8f3d8022147a811bf3565
Diffstat (limited to 'java/pom.xml')
-rw-r--r-- | java/pom.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/pom.xml b/java/pom.xml index f36d65f..a34c164 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -144,6 +144,7 @@ <arg value="../src/google/protobuf/unittest_single_nano.proto" /> <arg value="../src/google/protobuf/unittest_multiple_nano.proto" /> <arg value="../src/google/protobuf/unittest_multiple_nameclash_nano.proto" /> + <arg value="../src/google/protobuf/unittest_enum_class_nano.proto" /> </exec> <exec executable="../src/protoc"> <arg value="--javanano_out=store_unknown_fields=true:target/generated-test-sources" /> @@ -163,6 +164,13 @@ <arg value="--proto_path=src/test/java" /> <arg value="../src/google/protobuf/unittest_accessors_nano.proto" /> </exec> + <exec executable="../src/protoc"> + <arg value="--javanano_out=enum_style=java:target/generated-test-sources" /> + <arg value="--proto_path=../src" /> + <arg value="--proto_path=src/test/java" /> + <arg value="../src/google/protobuf/unittest_enum_class_nano.proto" /> + <arg value="../src/google/protobuf/unittest_enum_class_multiple_nano.proto" /> + </exec> </tasks> <testSourceRoot>target/generated-test-sources</testSourceRoot> <!--testSourceRoot>target/generated-test-sources/opt-space</testSourceRoot--> |