forked from gwtproject/gwt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·153 lines (136 loc) · 7.89 KB
/
build.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<project name="requestfactory" default="build" basedir=".">
<property name="gwt.root" location=".." />
<property name="project.tail" value="requestfactory" />
<import file="${gwt.root}/common.ant.xml" />
<!-- Remove all output files -->
<target name="clean" description="Cleans this project's output files">
<delete file="${gwt.build.lib}/requestfactory-apt.jar" />
<delete file="${gwt.build.lib}/requestfactory-apt-src.jar" />
<delete file="${gwt.build.lib}/requestfactory-client.jar" />
<delete file="${gwt.build.lib}/requestfactory-client-src.jar" />
<delete file="${gwt.build.lib}/requestfactory-client+src.jar" />
<delete file="${gwt.build.lib}/requestfactory-server.jar" />
<delete file="${gwt.build.lib}/requestfactory-server-src.jar" />
<delete file="${gwt.build.lib}/requestfactory-server+src.jar" />
<delete file="${gwt.build.lib}/requestfactory-test.jar" />
<delete file="${gwt.build.lib}/requestfactory-test-src.jar" />
<delete file="${gwt.build.lib}/requestfactory-test-validated.jar" />
</target>
<!-- Build a jar file containing a subset of requestfactory -->
<macrodef name="requestfactory-jar">
<!--
"target" should be one of {client,server,all}[(+|-)src] or test[-src].
-src includes .java files only, +src includes .java and .class files
-->
<attribute name="target" default="client"/>
<sequential>
<java failonerror="true" fork="true"
classname="com.google.web.bindery.requestfactory.server.RequestFactoryJarExtractor">
<classpath>
<fileset dir="${gwt.build.lib}" includes="gwt-user.jar,gwt-dev.jar" />
<pathelement location="${gwt.tools.lib}/junit/junit-4.8.2.jar" />
<pathelement path="${gwt.build.out}/user/bin" />
<pathelement path="${gwt.build.out}/dev/bin-test" />
<pathelement path="${gwt.build.out}/user/bin-test" />
</classpath>
<jvmarg value="-ea"/>
<arg value="@{target}"/>
<arg file="${gwt.build.lib}/requestfactory-@{target}.jar"/>
</java>
</sequential>
</macrodef>
<!-- Targets for individual jars -->
<target name="requestfactory-apt" description="Build RequestFactory apt jar">
<requestfactory-jar target="apt"/>
</target>
<!-- Targets for individual jars -->
<target name="requestfactory-apt-src" description="Build RequestFactory apt source jar">
<requestfactory-jar target="apt-src"/>
</target>
<!-- Useful for Android testing -->
<target name="requestfactory-all" description="Build RequestFactory all jar">
<requestfactory-jar target="all"/>
</target>
<target name="requestfactory-client" description="Build RequestFactory client jar">
<requestfactory-jar target="client"/>
</target>
<target name="requestfactory-client-src" description="Build RequestFactory client source jar">
<requestfactory-jar target="client-src"/>
</target>
<target name="requestfactory-client+src" description="Build RequestFactory client source/class jar">
<requestfactory-jar target="client+src"/>
</target>
<target name="requestfactory-server" description="Build RequestFactory server jar">
<requestfactory-jar target="server"/>
</target>
<target name="requestfactory-server-src" description="Build RequestFactory server source jar">
<requestfactory-jar target="server-src"/>
</target>
<target name="requestfactory-server+src" description="Build RequestFactory server source/class jar">
<requestfactory-jar target="server+src"/>
</target>
<!-- This target requires classes from ../build/{dev,user}/bin-test -->
<target name="requestfactory-test"
unless="test.requestfactory.disable"
description="Build RequestFactory test source/class jar">
<requestfactory-jar target="test" />
<requestfactory-jar target="test-src" />
</target>
<!-- Build all client jars -->
<target name="clientjars" depends="requestfactory-apt,requestfactory-apt-src,requestfactory-client,requestfactory-client-src,requestfactory-client+src" description="Build requestfactory client jars" />
<!-- Build all server jars -->
<target name="serverjars" depends="requestfactory-server,requestfactory-server-src,requestfactory-server+src" description="Build requestfactory server jars" />
<!-- Default target, build client and server jars.
Assumes the 'user' target has been built in the trunk directory
-->
<target name="build" depends="clientjars,serverjars" />
<!-- Run RequestFactoryJreSuite from the requestfactory-test+src jar.
Assumes test classes have been built in the trunk directory
-->
<target name="test" depends="requestfactory-test" description="Run RequestFactoryJreSuite">
<!-- There's no direct dependency on the Deobfuscator builders, so this gives us an opportunity
to test the post-compilation ValidationTool to generate the metadata from the precompiled
class files. If a new RequestFactory types is added without the argument list below being
updated, a runtime error will occur giving the name of the RequestFactory that needs to
be validated.
-->
<java failonerror="true" fork="true"
classname="com.google.web.bindery.requestfactory.apt.ValidationTool" >
<classpath>
<fileset dir="${gwt.build.lib}" includes="requestfactory-apt.jar" />
<fileset dir="${gwt.build.lib}" includes="requestfactory-client.jar" />
<fileset dir="${gwt.build.lib}" includes="requestfactory-test.jar" />
</classpath>
<arg path="${gwt.build.lib}/requestfactory-test-validated.jar" />
<arg value="com.google.web.bindery.requestfactory.gwt.client.ProxyForInterfacesTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.gwt.client.RequestFactoryChainedContextTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.gwt.client.RequestFactoryPolymorphicTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.gwt.client.RequestFactoryGenericsTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.shared.BoxesAndPrimitivesTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.shared.ComplexKeysTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.shared.LocatorTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.shared.MethodProvidedByServiceLayerTest.Factory" />
<arg value="com.google.web.bindery.requestfactory.shared.MultipleFactoriesTest.Factory1" />
<arg value="com.google.web.bindery.requestfactory.shared.MultipleFactoriesTest.Factory2" />
<arg value="com.google.web.bindery.requestfactory.shared.ServiceInheritanceTest$Factory" />
<arg value="com.google.web.bindery.requestfactory.shared.SimpleJsonRpcRequestFactory" />
<arg value="com.google.web.bindery.requestfactory.shared.SimpleRequestFactory" />
</java>
<java failonerror="true" fork="true"
classname="com.google.web.bindery.requestfactory.vm.RequestFactoryJreSuite">
<jvmarg value="-Xss8m" />
<classpath>
<fileset dir="${gwt.tools.lib}" includes="tomcat/tomcat-servlet-api-8.0.28.jar" />
<fileset dir="${gwt.tools.lib}" includes="apache/log4j/log4j-1.2.17.jar" />
<fileset dir="${gwt.tools.lib}" includes="slf4j/slf4j-api/slf4j-api-1.7.12.jar" />
<fileset dir="${gwt.tools.lib}" includes="slf4j/slf4j-log4j12/slf4j-log4j12-1.7.12.jar" />
<fileset dir="${gwt.tools.lib}" includes="hibernate/validator/hibernate-validator-4.1.0.Final.jar" />
<fileset dir="${gwt.tools.lib}" includes="javax/validation/validation-api-1.0.0.GA.jar" />
<fileset dir="${gwt.tools.lib}" includes="javax/xml/bind/jaxb-api-2.1.jar" />
<fileset dir="${gwt.build.lib}" includes="requestfactory-test.jar" />
<fileset dir="${gwt.build.lib}" includes="requestfactory-test-src.jar" />
<fileset dir="${gwt.build.lib}" includes="requestfactory-test-validated.jar" />
</classpath>
</java>
</target>
</project>