blob: 15110362ec22a7b3d0bcff05501c8be11e78605b [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">
Manuel Carrasco Moñino43797ae2014-10-19 12:31:52 +020014 <gwt.ant dir="dynatablerf" />
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
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
rchandia@google.com18d67dd2011-04-20 16:27:14 +000029 <target name="mobilewebapp" description="Build mobile web app">
Manuel Carrasco Moñino43797ae2014-10-19 12:31:52 +020030 <gwt.ant dir="mobilewebapp" />
rchandia@google.com18d67dd2011-04-20 16:27:14 +000031 </target>
32
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000033 <target name="showcase" description="Build showcase">
34 <gwt.ant dir="showcase" />
35 </target>
gwt.team.jlabanca40faa082008-03-12 00:08:50 +000036
nchalko@google.com97def992010-08-26 22:18:52 +000037 <target name="validation" description="Build validation">
Manuel Carrasco Moñino43797ae2014-10-19 12:31:52 +020038 <gwt.ant dir="validation" />
nchalko@google.com97def992010-08-26 22:18:52 +000039 </target>
40
nchalko@google.com93219532010-11-15 18:52:58 +000041 <target name="validationtck" description="Build validation TCK">
42 <gwt.ant dir="validationtck" />
43 </target>
44
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000045 <target name="-do" description="Run all subprojects" >
46 <antcall target="dynatable" />
rjrjr@google.com41902cd2010-08-26 18:08:37 +000047 <antcall target="dynatablerf" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000048 <antcall target="hello" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000049 <antcall target="json" />
50 <antcall target="mail" />
rchandia@google.com18d67dd2011-04-20 16:27:14 +000051 <antcall target="mobilewebapp" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000052 <antcall target="showcase" />
nchalko@google.com97def992010-08-26 22:18:52 +000053 <antcall target="validation" />
nchalko@google.com93219532010-11-15 18:52:58 +000054 <!-- don't include validationtck, it is not really a sample -->
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000055 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000056
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000057 <target name="build" description="Builds GWT">
Thomas Broyer8e05f922014-04-14 01:55:44 +020058 <antcall target="-do">
59 <param name="target" value="build" />
60 </antcall>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000061 <length property="gwt.sample.length">
scottb@google.com6cd61e92009-01-16 19:50:20 +000062 <fileset dir="${gwt.build.out}/samples" includes="*/war/*/*.cache.html,*/war/*/*.cache.js"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000063 </length>
skybrian@google.comdaebbcb2012-06-15 16:42:27 +000064 <echo message="compiled size of all samples is ${gwt.sample.length} bytes." level="info"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000065 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000066
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000067 <target name="checkstyle" description="Static analysis of GWT source">
68 <antcall target="-do">
69 <param name="target" value="checkstyle" />
70 </antcall>
71 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000072
cramsdale@google.com408e75e2010-08-20 15:26:19 +000073 <target name="source" description="Copy source to the output folder">
74 <antcall target="-do">
75 <param name="target" value="source" />
76 </antcall>
77 </target>
nchalko@google.com97def992010-08-26 22:18:52 +000078
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000079 <target name="test" description="Test GWT">
80 <antcall target="-do">
81 <param name="target" value="test" />
82 </antcall>
83 </target>
gwt.team.scottb69965322006-12-19 23:58:19 +000084
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000085 <target name="clean" description="Cleans this project's intermediate and output files">
86 <delete dir="${project.build}" />
87 <delete dir="${gwt.build.out}/samples-scripts" />
88 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000089</project>