generate-test-sources-build.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <project name="generate-test-sources">
  2. <mkdir dir="${generated.testsources.dir}"/>
  3. <exec executable="${protoc}">
  4. <arg value="--java_out=lite:${generated.testsources.dir}"/>
  5. <arg value="--proto_path=${protobuf.source.dir}"/>
  6. <arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/>
  7. <arg value="--experimental_allow_proto3_optional"/>
  8. <arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/>
  9. <arg value="${protobuf.source.dir}/google/protobuf/unittest.proto"/>
  10. <arg value="${protobuf.source.dir}/google/protobuf/unittest_import.proto"/>
  11. <arg value="${protobuf.source.dir}/google/protobuf/unittest_import_lite.proto"/>
  12. <arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public.proto"/>
  13. <arg value="${protobuf.source.dir}/google/protobuf/unittest_import_public_lite.proto"/>
  14. <arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/>
  15. <arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/>
  16. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/>
  17. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/>
  18. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/>
  19. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/>
  20. </exec>
  21. <exec executable="${protoc}">
  22. <arg value="--kotlin_out=lite:${generated.testsources.dir}"/>
  23. <arg value="--proto_path=${protobuf.source.dir}"/>
  24. <arg value="--proto_path=${protobuf.basedir}/java/kotlin/${test.proto.dir}"/>
  25. <arg value="--experimental_allow_proto3_optional"/>
  26. <arg value="${protobuf.source.dir}/google/protobuf/map_lite_unittest.proto"/>
  27. <arg value="${protobuf.source.dir}/google/protobuf/unittest_lite.proto"/>
  28. <arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/>
  29. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto2.proto"/>
  30. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/evil_names_proto3.proto"/>
  31. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/example_extensible_message.proto"/>
  32. <arg value="${protobuf.basedir}/java/kotlin/${test.proto.dir}/com/google/protobuf/multiple_files_proto3.proto"/>
  33. </exec>
  34. </project>