blob: 81d72a38e0cef35ce8a0668ebf9cb007cba6c75f [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">
54 <fileset dir="${gwt.build.out}/samples">
55 <include name="**/www/com*/**"/>
56 </fileset>
57 </length>
58 <echo message="compiled size of all samples is ${gwt.sample.length} bytes."/>
59 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000060
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000061 <target name="checkstyle" description="Static analysis of GWT source">
62 <antcall target="-do">
63 <param name="target" value="checkstyle" />
64 </antcall>
65 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000066
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000067 <target name="test" description="Test GWT">
68 <antcall target="-do">
69 <param name="target" value="test" />
70 </antcall>
71 </target>
gwt.team.scottb69965322006-12-19 23:58:19 +000072
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000073 <target name="clean" description="Cleans this project's intermediate and output files">
74 <delete dir="${project.build}" />
75 <delete dir="${gwt.build.out}/samples-scripts" />
76 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000077</project>