-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-proto.xml
51 lines (45 loc) · 1.96 KB
/
build-proto.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<project name="fedone_proto" default="compile_json">
<description>Generation of Protocol Buffers</description>
<property file="build.properties"/>
<property file="build-proto.properties"/>
<target name="compile" >
<exec executable="protoc">
<arg value="--proto_path=src/"/>
<arg value="--java_out=proto_src"/>
<arg value="${src}/org/waveprotocol/wave/federation/federation.protodevel"/>
</exec>
<exec executable="protoc">
<arg value="--proto_path=src/"/>
<arg value="--proto_path=${protoc_dist}/src/"/>
<arg value="--java_out=proto_src"/>
<arg value="${src}/org/waveprotocol/wave/examples/fedone/rpc/rpc.proto"/>
</exec>
<exec executable="protoc">
<arg value="--proto_path=src/"/>
<arg value="--proto_path=${protoc_dist}/src"/>
<arg value="--java_out=proto_src"/>
<arg value="${src}/org/waveprotocol/wave/examples/fedone/waveserver/waveclient-rpc.proto"/>
</exec>
<exec executable="protoc">
<arg value="--proto_path=src/"/>
<arg value="--proto_path=${protoc_dist}/src"/>
<arg value="--java_out=proto_src"/>
<arg
value="${src}/org/waveprotocol/wave/federation/federation_error.protodevel"/>
</exec>
</target>
<target name="compile_json">
<!-- note: this target currently causes problems; its output is also currently unused.
it will be used to generate JSON-happy protomessages once the rest of the code is
ready for it. -->
<java classname="com.dyuproject.protostuff.compiler.CompilerMain" fork="true" dir="src">
<arg value="../etc/proto-profiles.properties"/>
<classpath>
<pathelement location="${proto.classes}"/>
<pathelement location="third_party/codegen/protostuff/protostuff.jar"/>
<pathelement location="third_party/codegen/stringtemplate/stringtemplate-3.2.1.jar"/>
<pathelement location="third_party/codegen/antlr/antlr-3.2.jar"/>
</classpath>
</java>
</target>
</project>