diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2016-07-28 13:30:58 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2016-07-28 13:30:58 -0700 |
commit | ae895a5783b0a69cfc6bd5e4ad4d9988c4886d0b (patch) | |
tree | 79e5a4d384dcf44601ef3f07d6f35f5a084011f4 | |
parent | 8afbb84c488ae28ae2714dbaa83abdc059bb0ee9 (diff) | |
download | protobuf-javalite-ae895a5783b0a69cfc6bd5e4ad4d9988c4886d0b.tar.gz |
Update maven to call the plugin to generate javalite code.
-rw-r--r-- | java/lite/generate-sources-build.xml | 3 | ||||
-rw-r--r-- | java/lite/pom.xml | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/java/lite/generate-sources-build.xml b/java/lite/generate-sources-build.xml index 89c21c13..83e79e7b 100644 --- a/java/lite/generate-sources-build.xml +++ b/java/lite/generate-sources-build.xml @@ -2,8 +2,9 @@ <echo message="Running protoc ..."/> <mkdir dir="${generated.sources.lite.dir}"/> <exec executable="${protoc}"> - <arg value="--java_out=lite:${generated.sources.lite.dir}"/> + <arg value="--javalite_out=${generated.sources.lite.dir}"/> <arg value="--proto_path=${protobuf.source.dir}"/> + <arg value="--plugin=protoc-gen-javalite=${protoc-gen-javalite}"/> <arg value="${protobuf.source.dir}/google/protobuf/any.proto"/> <arg value="${protobuf.source.dir}/google/protobuf/api.proto"/> <arg value="${protobuf.source.dir}/google/protobuf/descriptor.proto"/> diff --git a/java/lite/pom.xml b/java/lite/pom.xml index 9862cd94..eb98ec5f 100644 --- a/java/lite/pom.xml +++ b/java/lite/pom.xml @@ -33,6 +33,7 @@ <properties> <core.root>../core</core.root> <test.proto.dir>${core.root}/src/test/proto</test.proto.dir> + <protoc-gen-javalite>${protobuf.source.dir}/protoc-gen-javalite</protoc-gen-javalite> </properties> <build> |