blob: b5061e1997eb509a48e222956a5bba993852a268 [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
rjrjr@google.comd39fe782010-07-23 22:42:40 +000013 <target name="dynatablerf" description="Build dynatablerf">
14 <gwt.ant dir="dynatablerf" />
15 </target>
16
cramsdale@google.comfa87f8f2010-08-19 01:29:03 +000017 <target name="expenses" description="Build expenses">
fabbott@google.com6bdc0f12010-08-25 18:12:04 +000018 <gwt.ant dir="expenses" target="source" />
cramsdale@google.comfa87f8f2010-08-19 01:29:03 +000019 </target>
20
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000021 <target name="hello" description="Build hello">
22 <gwt.ant dir="hello" />
23 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000024
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000025 <target name="json" description="Build json">
26 <gwt.ant dir="json" />
27 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000028
rjrjr@google.com41902cd2010-08-26 18:08:37 +000029 <target name="logexample" description="Build logexample">
30 <gwt.ant dir="logexample" />
31 </target>
32
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000033 <target name="mail" description="Build mail">
34 <gwt.ant dir="mail" />
35 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000036
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000037 <target name="showcase" description="Build showcase">
38 <gwt.ant dir="showcase" />
39 </target>
gwt.team.jlabanca40faa082008-03-12 00:08:50 +000040
nchalko@google.com97def992010-08-26 22:18:52 +000041 <target name="validation" description="Build validation">
42 <gwt.ant dir="validation" />
43 </target>
44
nchalko@google.com93219532010-11-15 18:52:58 +000045 <target name="validationtck" description="Build validation TCK">
46 <gwt.ant dir="validationtck" />
47 </target>
48
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000049 <target name="-do" description="Run all subprojects" >
50 <antcall target="dynatable" />
rjrjr@google.com41902cd2010-08-26 18:08:37 +000051 <antcall target="dynatablerf" />
cramsdale@google.comfa87f8f2010-08-19 01:29:03 +000052 <antcall target="expenses" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000053 <antcall target="hello" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000054 <antcall target="json" />
unnurg@google.com1b1f91f2010-09-23 16:41:08 +000055 <antcall target="logexample" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000056 <antcall target="mail" />
57 <antcall target="showcase" />
nchalko@google.com97def992010-08-26 22:18:52 +000058 <antcall target="validation" />
nchalko@google.com93219532010-11-15 18:52:58 +000059 <!-- don't include validationtck, it is not really a sample -->
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000060 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000061
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000062 <target name="build" description="Builds GWT">
63 <gwt.timer name="all">
64 <antcall target="-do">
65 <param name="target" value="build" />
66 </antcall>
67 </gwt.timer>
68 <length property="gwt.sample.length">
scottb@google.com6cd61e92009-01-16 19:50:20 +000069 <fileset dir="${gwt.build.out}/samples" includes="*/war/*/*.cache.html,*/war/*/*.cache.js"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000070 </length>
71 <echo message="compiled size of all samples is ${gwt.sample.length} bytes."/>
72 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000073
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000074 <target name="checkstyle" description="Static analysis of GWT source">
75 <antcall target="-do">
76 <param name="target" value="checkstyle" />
77 </antcall>
78 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000079
cramsdale@google.com408e75e2010-08-20 15:26:19 +000080 <target name="source" description="Copy source to the output folder">
81 <antcall target="-do">
82 <param name="target" value="source" />
83 </antcall>
84 </target>
nchalko@google.com97def992010-08-26 22:18:52 +000085
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000086 <target name="test" description="Test GWT">
87 <antcall target="-do">
88 <param name="target" value="test" />
89 </antcall>
90 </target>
gwt.team.scottb69965322006-12-19 23:58:19 +000091
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000092 <target name="clean" description="Cleans this project's intermediate and output files">
93 <delete dir="${project.build}" />
94 <delete dir="${gwt.build.out}/samples-scripts" />
95 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000096</project>