blob: 3d4477192734a70e5cf6ffaaadc754b10b7eb94c [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="i18n" description="Build i18n">
18 <gwt.ant dir="i18n" />
19 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000020
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000021 <target name="json" description="Build json">
22 <gwt.ant dir="json" />
23 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000024
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000025 <target name="mail" description="Build mail">
26 <gwt.ant dir="mail" />
27 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000028
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000029 <target name="showcase" description="Build showcase">
30 <gwt.ant dir="showcase" />
31 </target>
gwt.team.jlabanca40faa082008-03-12 00:08:50 +000032
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000033 <target name="simplexml" description="Build simplexml">
34 <gwt.ant dir="simplexml" />
35 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000036
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000037 <target name="-do" description="Run all subprojects" >
38 <antcall target="dynatable" />
39 <antcall target="hello" />
40 <antcall target="i18n" />
41 <antcall target="json" />
42 <antcall target="mail" />
43 <antcall target="showcase" />
44 <antcall target="simplexml" />
45 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000046
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000047 <target name="build" description="Builds GWT">
48 <gwt.timer name="all">
49 <antcall target="-do">
50 <param name="target" value="build" />
51 </antcall>
52 </gwt.timer>
53 <length property="gwt.sample.length">
scottb@google.com6cd61e92009-01-16 19:50:20 +000054 <fileset dir="${gwt.build.out}/samples" includes="*/war/*/*.cache.html,*/war/*/*.cache.js"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000055 </length>
56 <echo message="compiled size of all samples is ${gwt.sample.length} bytes."/>
57 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000058
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000059 <target name="checkstyle" description="Static analysis of GWT source">
60 <antcall target="-do">
61 <param name="target" value="checkstyle" />
62 </antcall>
63 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000064
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000065 <target name="test" description="Test GWT">
66 <antcall target="-do">
67 <param name="target" value="test" />
68 </antcall>
69 </target>
gwt.team.scottb69965322006-12-19 23:58:19 +000070
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000071 <target name="clean" description="Cleans this project's intermediate and output files">
72 <delete dir="${project.build}" />
73 <delete dir="${gwt.build.out}/samples-scripts" />
74 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000075</project>