blob: 21a57be86a4d1dd6a7581a67ffa98bd011d1a695 [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>
bobv@google.comacead922010-10-22 19:06:16 +000026 <fileset dir="${gwt.dev.bin}">
27 <include name="com/google/gwt/dev/asm/**" />
28 <include name="com/google/gwt/dev/util/Name*.class" />
bobv@google.com7bf7df32011-07-13 14:16:05 +000029 <include name="com/google/gwt/dev/util/StringKey.class" />
meder@google.com79c170a2011-08-03 00:42:12 +000030 <include name="com/google/gwt/util/tools/shared/**" />
bobv@google.comacead922010-10-22 19:06:16 +000031 </fileset>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000032 <fileset dir="${gwt.user.bin}">
33 <exclude name="**/rebind/**" />
34 <exclude name="**/tools/**" />
tomerigo@google.comc2163e62010-02-01 16:08:26 +000035 <exclude name="**/super/**" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000036 <exclude name="com/google/gwt/json/**" />
37 <exclude name="com/google/gwt/junit/*" />
38 <exclude name="com/google/gwt/junit/client/GWTTestCase.*" />
39 <exclude name="com/google/gwt/junit/remote/**" />
40 <exclude name="com/google/gwt/junit/server/**" />
41 <exclude name="com/google/gwt/benchmarks/*" />
zundel@google.comc0a2ce32011-06-08 23:44:32 +000042 <exclude name="**/*.gwtar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000043 </fileset>
jlabanca@google.com498861e2011-06-07 12:10:39 +000044
45 <!-- additional dependencies (used by scripts). -->
jlabanca@google.comb24a86b2010-10-22 17:36:00 +000046 </gwt.jar>
47 </target>
48
49 <target name="-deps" description="Packages this project's dependencies into a jar">
50 <mkdir dir="${gwt.build.lib}" />
51 <gwt.jar destfile="${project.lib.deps}">
gwt.mirrorbot@gmail.com07b4e2e2010-10-07 20:59:41 +000052 <!-- The following two jars satisfy RequestFactory dependencies. -->
53 <zipfileset src="${gwt.tools.redist}/json/r2_20080312/json-1.5.jar" />
54 <zipfileset src="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
cromwellian@google.com39341aa2011-11-22 21:50:11 +000055 <zipfileset src="${gwt.tools.lib}/jscomp/sourcemap-rebased.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000056 </gwt.jar>
57 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000058</project>