blob: caf55cdadd3e814875e698eb5b2505577bddd321 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="servlet" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="servlet" />
4 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00005
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00006 <property.ensure name="gwt.user.root" location="${gwt.root}/user" />
bobv@google.comacead922010-10-22 19:06:16 +00007 <property.ensure name="gwt.dev.build" location="${gwt.build.out}/dev" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00008 <property.ensure name="gwt.user.build" location="${gwt.build.out}/user" />
bobv@google.comacead922010-10-22 19:06:16 +00009 <property.ensure name="gwt.dev.bin" location="${gwt.dev.build}/bin" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000010 <property.ensure name="gwt.user.bin" location="${gwt.user.build}/bin" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000011
jlabanca@google.comb24a86b2010-10-22 17:36:00 +000012 <property name="project.lib.deps"
13 location="${gwt.build.lib}/gwt-${ant.project.name}-deps.jar" />
14
15 <target name="build" description="Packages this project into a jar"
16 depends="-servlet, -deps" />
17
18 <target name="clean" description="Cleans this project's intermediate and output files">
19 <delete file="${project.lib}" />
20 <delete file="${project.lib.deps}" />
21 </target>
22
23 <target name="-servlet" description="Packages this project into a jar">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000024 <mkdir dir="${gwt.build.lib}" />
25 <gwt.jar>
cristcostb3cdf9d2013-11-13 23:33:11 +010026 <!-- Rebased dependencies go in gwt-servlet too -->
Michael Zhou3e4353a2016-04-06 22:52:34 -040027 <zipfileset src="${gwt.tools.lib}/guava/guava-19.0/guava-19.0-rebased.jar" />
Michael Zhou1ed44cd2016-04-04 22:58:28 -040028 <zipfileset src="${gwt.tools.lib}/jscomp/20160315/sourcemap-rebased.jar" />
Thomas Broyer896c3f42014-10-17 11:41:00 +020029 <zipfileset src="${gwt.tools.lib}/json/android-sdk-19.1/json-android-rebased.jar" />
cristcostb3cdf9d2013-11-13 23:33:11 +010030 <zipfileset src="${gwt.tools.lib}/streamhtmlparser/streamhtmlparser-jsilver-r10/streamhtmlparser-jsilver-r10-1.5-rebased.jar" />
31 <zipfileset src="${gwt.tools.lib}/protobuf/protobuf-2.5.0/protobuf-java-rebased-2.5.0.jar" />
bobv@google.comacead922010-10-22 19:06:16 +000032 <fileset dir="${gwt.dev.bin}">
33 <include name="com/google/gwt/dev/asm/**" />
34 <include name="com/google/gwt/dev/util/Name*.class" />
bobv@google.com7bf7df32011-07-13 14:16:05 +000035 <include name="com/google/gwt/dev/util/StringKey.class" />
meder@google.com79c170a2011-08-03 00:42:12 +000036 <include name="com/google/gwt/util/tools/shared/**" />
jat@google.com22b7b5e2012-05-08 14:01:05 +000037 <include name="com/google/gwt/core/shared/**" />
bobv@google.comacead922010-10-22 19:06:16 +000038 </fileset>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000039 <fileset dir="${gwt.user.bin}">
40 <exclude name="**/rebind/**" />
41 <exclude name="**/tools/**" />
tomerigo@google.comc2163e62010-02-01 16:08:26 +000042 <exclude name="**/super/**" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000043 <exclude name="com/google/gwt/json/**" />
44 <exclude name="com/google/gwt/junit/*" />
45 <exclude name="com/google/gwt/junit/client/GWTTestCase.*" />
46 <exclude name="com/google/gwt/junit/remote/**" />
47 <exclude name="com/google/gwt/junit/server/**" />
48 <exclude name="com/google/gwt/benchmarks/*" />
zundel@google.comc0a2ce32011-06-08 23:44:32 +000049 <exclude name="**/*.gwtar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000050 </fileset>
jlabanca@google.com498861e2011-06-07 12:10:39 +000051
52 <!-- additional dependencies (used by scripts). -->
jlabanca@google.comb24a86b2010-10-22 17:36:00 +000053 </gwt.jar>
54 </target>
55
56 <target name="-deps" description="Packages this project's dependencies into a jar">
57 <mkdir dir="${gwt.build.lib}" />
58 <gwt.jar destfile="${project.lib.deps}">
Thomas Broyer1454cec2016-06-13 09:46:39 +020059 <zipfileset src="${gwt.tools.lib}/gson/gson-2.6.2.jar"/>
Thomas Broyer896c3f42014-10-17 11:41:00 +020060 <!-- The following jar satisfies RequestFactory dependencies. -->
gwt.mirrorbot@gmail.com07b4e2e2010-10-07 20:59:41 +000061 <zipfileset src="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000062 </gwt.jar>
63 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000064</project>