blob: 7d6f0260bc0e8ec62d27f68b4917673548d15929 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="samples" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="samples" />
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 <!-- "build" is the default when subprojects are directly targetted -->
7 <property name="target" value="build" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00008
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00009 <target name="dynatable" description="Build dynatable">
10 <gwt.ant dir="dynatable" />
11 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000012
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000013 <target name="hello" description="Build hello">
14 <gwt.ant dir="hello" />
15 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000016
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000017 <target name="json" description="Build json">
18 <gwt.ant dir="json" />
19 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000020
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000021 <target name="mail" description="Build mail">
22 <gwt.ant dir="mail" />
23 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000024
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000025 <target name="showcase" description="Build showcase">
26 <gwt.ant dir="showcase" />
27 </target>
gwt.team.jlabanca40faa082008-03-12 00:08:50 +000028
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000029 <target name="-do" description="Run all subprojects" >
30 <antcall target="dynatable" />
31 <antcall target="hello" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000032 <antcall target="json" />
33 <antcall target="mail" />
34 <antcall target="showcase" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000035 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000036
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000037 <target name="build" description="Builds GWT">
38 <gwt.timer name="all">
39 <antcall target="-do">
40 <param name="target" value="build" />
41 </antcall>
42 </gwt.timer>
43 <length property="gwt.sample.length">
scottb@google.com6cd61e92009-01-16 19:50:20 +000044 <fileset dir="${gwt.build.out}/samples" includes="*/war/*/*.cache.html,*/war/*/*.cache.js"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000045 </length>
46 <echo message="compiled size of all samples is ${gwt.sample.length} bytes."/>
47 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000048
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000049 <target name="checkstyle" description="Static analysis of GWT source">
50 <antcall target="-do">
51 <param name="target" value="checkstyle" />
52 </antcall>
53 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000054
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000055 <target name="test" description="Test GWT">
56 <antcall target="-do">
57 <param name="target" value="test" />
58 </antcall>
59 </target>
gwt.team.scottb69965322006-12-19 23:58:19 +000060
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000061 <target name="clean" description="Cleans this project's intermediate and output files">
62 <delete dir="${project.build}" />
63 <delete dir="${gwt.build.out}/samples-scripts" />
64 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000065</project>