blob: 5d58dc60b48f453bdf4fded9b57a2ea738e7b398 [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">
rchandia@google.com75f74f22011-09-08 17:23:31 +000014 <gwt.ant dir="dynatablerf" target="source" />
rjrjr@google.comd39fe782010-07-23 22:42:40 +000015 </target>
16
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000017 <target name="hello" description="Build hello">
18 <gwt.ant dir="hello" />
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
rjrjr@google.com41902cd2010-08-26 18:08:37 +000025 <target name="logexample" description="Build logexample">
26 <gwt.ant dir="logexample" />
27 </target>
28
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000029 <target name="mail" description="Build mail">
30 <gwt.ant dir="mail" />
31 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000032
rchandia@google.com18d67dd2011-04-20 16:27:14 +000033 <target name="mobilewebapp" description="Build mobile web app">
rchandia@google.comacc5df02011-06-01 15:59:33 +000034 <gwt.ant dir="mobilewebapp" target="source" />
rchandia@google.com18d67dd2011-04-20 16:27:14 +000035 </target>
36
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">
rjrjr@google.com0aaa0d52011-09-12 22:26:46 +000042 <gwt.ant dir="validation" target="source" />
nchalko@google.com97def992010-08-26 22:18:52 +000043 </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" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000052 <antcall target="hello" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000053 <antcall target="json" />
unnurg@google.com1b1f91f2010-09-23 16:41:08 +000054 <antcall target="logexample" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000055 <antcall target="mail" />
rchandia@google.com18d67dd2011-04-20 16:27:14 +000056 <antcall target="mobilewebapp" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000057 <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">
Thomas Broyer8e05f922014-04-14 01:55:44 +020063 <antcall target="-do">
64 <param name="target" value="build" />
65 </antcall>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000066 <length property="gwt.sample.length">
scottb@google.com6cd61e92009-01-16 19:50:20 +000067 <fileset dir="${gwt.build.out}/samples" includes="*/war/*/*.cache.html,*/war/*/*.cache.js"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000068 </length>
skybrian@google.comdaebbcb2012-06-15 16:42:27 +000069 <echo message="compiled size of all samples is ${gwt.sample.length} bytes." level="info"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000070 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000071
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000072 <target name="checkstyle" description="Static analysis of GWT source">
73 <antcall target="-do">
74 <param name="target" value="checkstyle" />
75 </antcall>
76 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000077
cramsdale@google.com408e75e2010-08-20 15:26:19 +000078 <target name="source" description="Copy source to the output folder">
79 <antcall target="-do">
80 <param name="target" value="source" />
81 </antcall>
82 </target>
nchalko@google.com97def992010-08-26 22:18:52 +000083
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000084 <target name="test" description="Test GWT">
85 <antcall target="-do">
86 <param name="target" value="test" />
87 </antcall>
88 </target>
gwt.team.scottb69965322006-12-19 23:58:19 +000089
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000090 <target name="clean" description="Cleans this project's intermediate and output files">
91 <delete dir="${project.build}" />
92 <delete dir="${gwt.build.out}/samples-scripts" />
93 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000094</project>