Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
2.6 KiB
34 lines
2.6 KiB
<project name="generate-test-sources"> |
|
<mkdir dir="${generated.testsources.dir}"/> |
|
<exec executable="${protoc}"> |
|
<arg value="--java_out=lite:${generated.testsources.dir}"/> |
|
<arg value="--proto_path=${protobuf.source.dir}"/> |
|
<arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/> |
|
<arg value="--experimental_allow_proto3_optional"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import_lite.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public_lite.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/> |
|
</exec> |
|
<exec executable="${protoc}"> |
|
<arg value="--kotlin_out=lite:${generated.testsources.dir}"/> |
|
<arg value="--proto_path=${protobuf.source.dir}"/> |
|
<arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/> |
|
<arg value="--experimental_allow_proto3_optional"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/> |
|
<arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/> |
|
<arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/> |
|
</exec> |
|
</project>
|
|
|