• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<project name="generate-test-sources">
2    <mkdir dir="${generated.testsources.dir}"/>
3    <exec executable="${protoc}">
4        <arg value="--java_out=${generated.testsources.dir}"/>
5        <arg value="--proto_path=${protobuf.source.dir}"/>
6        <arg value="--proto_path=${test.proto.dir}"/>
7        <arg value="${protobuf.source.dir}/google/protobuf/unittest.proto"/>
8        <arg value="${protobuf.source.dir}/google/protobuf/unittest_custom_options.proto"/>
9        <arg value="${protobuf.source.dir}/google/protobuf/unittest_enormous_descriptor.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_mset.proto"/>
16        <arg value="${protobuf.source.dir}/google/protobuf/unittest_mset_wire_format.proto"/>
17        <arg value="${protobuf.source.dir}/google/protobuf/unittest_no_generic_services.proto"/>
18        <arg value="${protobuf.source.dir}/google/protobuf/unittest_optimize_for.proto"/>
19        <arg value="${protobuf.source.dir}/google/protobuf/unittest_proto3.proto"/>
20        <arg value="${protobuf.source.dir}/google/protobuf/unittest_well_known_types.proto"/>
21        <arg value="${test.proto.dir}/com/google/protobuf/any_test.proto"/>
22        <arg value="${test.proto.dir}/com/google/protobuf/cached_field_size_test.proto"/>
23        <arg value="${test.proto.dir}/com/google/protobuf/deprecated_file.proto"/>
24        <arg value="${test.proto.dir}/com/google/protobuf/field_presence_test.proto"/>
25        <arg value="${test.proto.dir}/com/google/protobuf/lazy_fields_lite.proto"/>
26        <arg value="${test.proto.dir}/com/google/protobuf/lite_equals_and_hash.proto"/>
27        <arg value="${test.proto.dir}/com/google/protobuf/map_for_proto2_lite_test.proto"/>
28        <arg value="${test.proto.dir}/com/google/protobuf/map_for_proto2_test.proto"/>
29        <arg value="${test.proto.dir}/com/google/protobuf/map_initialization_order_test.proto"/>
30        <arg value="${test.proto.dir}/com/google/protobuf/map_lite_test.proto"/>
31        <arg value="${test.proto.dir}/com/google/protobuf/map_test.proto"/>
32        <arg value="${test.proto.dir}/com/google/protobuf/message_lite_extension_util_test.proto"/>
33        <arg value="${test.proto.dir}/com/google/protobuf/multiple_files_test.proto"/>
34        <arg value="${test.proto.dir}/com/google/protobuf/nested_builders_test.proto"/>
35        <arg value="${test.proto.dir}/com/google/protobuf/nested_extension.proto"/>
36        <arg value="${test.proto.dir}/com/google/protobuf/non_nested_extension.proto"/>
37        <arg value="${test.proto.dir}/com/google/protobuf/outer_class_name_test.proto"/>
38        <arg value="${test.proto.dir}/com/google/protobuf/outer_class_name_test2.proto"/>
39        <arg value="${test.proto.dir}/com/google/protobuf/outer_class_name_test3.proto"/>
40        <arg value="${test.proto.dir}/com/google/protobuf/packed_field_test.proto"/>
41        <arg value="${test.proto.dir}/com/google/protobuf/proto2_message.proto"/>
42        <arg value="${test.proto.dir}/com/google/protobuf/proto2_message_lite.proto"/>
43        <arg value="${test.proto.dir}/com/google/protobuf/proto2_unknown_enum_values.proto"/>
44        <arg value="${test.proto.dir}/com/google/protobuf/proto3_message.proto"/>
45        <arg value="${test.proto.dir}/com/google/protobuf/proto3_message_lite.proto"/>
46        <arg value="${test.proto.dir}/com/google/protobuf/test_bad_identifiers.proto"/>
47        <arg value="${test.proto.dir}/com/google/protobuf/test_check_utf8.proto"/>
48        <arg value="${test.proto.dir}/com/google/protobuf/test_check_utf8_size.proto"/>
49        <arg value="${test.proto.dir}/com/google/protobuf/test_custom_options.proto"/>
50        <arg value="${test.proto.dir}/com/google/protobuf/wrappers_test.proto"/>
51    </exec>
52    <!-- Also generate some Lite protos needed for ExtensionRegistryFactoryTest -->
53    <exec executable="${protoc}">
54        <arg value="--java_out=lite:${generated.testsources.dir}"/>
55        <arg value="--proto_path=${protobuf.source.dir}"/>
56        <arg value="--proto_path=${test.proto.dir}"/>
57        <arg value="${test.proto.dir}/com/google/protobuf/nested_extension_lite.proto"/>
58        <arg value="${test.proto.dir}/com/google/protobuf/non_nested_extension_lite.proto"/>
59    </exec>
60</project>
61