gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="samples" default="build" basedir="."> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <property name="gwt.root" location=".." /> |
| 3 | <property name="project.tail" value="samples" /> |
| 4 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 5 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 6 | <!-- "build" is the default when subprojects are directly targetted --> |
| 7 | <property name="target" value="build" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 8 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 9 | <target name="dynatable" description="Build dynatable"> |
| 10 | <gwt.ant dir="dynatable" /> |
| 11 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 12 | |
rjrjr@google.com | d39fe78 | 2010-07-23 22:42:40 +0000 | [diff] [blame] | 13 | <target name="dynatablerf" description="Build dynatablerf"> |
| 14 | <gwt.ant dir="dynatablerf" /> |
| 15 | </target> |
| 16 | |
cramsdale@google.com | fa87f8f | 2010-08-19 01:29:03 +0000 | [diff] [blame] | 17 | <target name="expenses" description="Build expenses"> |
fabbott@google.com | 6bdc0f1 | 2010-08-25 18:12:04 +0000 | [diff] [blame] | 18 | <gwt.ant dir="expenses" target="source" /> |
cramsdale@google.com | fa87f8f | 2010-08-19 01:29:03 +0000 | [diff] [blame] | 19 | </target> |
| 20 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 21 | <target name="hello" description="Build hello"> |
| 22 | <gwt.ant dir="hello" /> |
| 23 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 24 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 25 | <target name="json" description="Build json"> |
| 26 | <gwt.ant dir="json" /> |
| 27 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 28 | |
rjrjr@google.com | 41902cd | 2010-08-26 18:08:37 +0000 | [diff] [blame] | 29 | <target name="logexample" description="Build logexample"> |
| 30 | <gwt.ant dir="logexample" /> |
| 31 | </target> |
| 32 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 33 | <target name="mail" description="Build mail"> |
| 34 | <gwt.ant dir="mail" /> |
| 35 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 36 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 37 | <target name="showcase" description="Build showcase"> |
| 38 | <gwt.ant dir="showcase" /> |
| 39 | </target> |
gwt.team.jlabanca | 40faa08 | 2008-03-12 00:08:50 +0000 | [diff] [blame] | 40 | |
nchalko@google.com | 97def99 | 2010-08-26 22:18:52 +0000 | [diff] [blame] | 41 | <target name="validation" description="Build validation"> |
| 42 | <gwt.ant dir="validation" /> |
| 43 | </target> |
| 44 | |
nchalko@google.com | 9321953 | 2010-11-15 18:52:58 +0000 | [diff] [blame] | 45 | <target name="validationtck" description="Build validation TCK"> |
| 46 | <gwt.ant dir="validationtck" /> |
| 47 | </target> |
| 48 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 49 | <target name="-do" description="Run all subprojects" > |
| 50 | <antcall target="dynatable" /> |
rjrjr@google.com | 41902cd | 2010-08-26 18:08:37 +0000 | [diff] [blame] | 51 | <antcall target="dynatablerf" /> |
cramsdale@google.com | fa87f8f | 2010-08-19 01:29:03 +0000 | [diff] [blame] | 52 | <antcall target="expenses" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 53 | <antcall target="hello" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 54 | <antcall target="json" /> |
unnurg@google.com | 1b1f91f | 2010-09-23 16:41:08 +0000 | [diff] [blame] | 55 | <antcall target="logexample" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 56 | <antcall target="mail" /> |
| 57 | <antcall target="showcase" /> |
nchalko@google.com | 97def99 | 2010-08-26 22:18:52 +0000 | [diff] [blame] | 58 | <antcall target="validation" /> |
nchalko@google.com | 9321953 | 2010-11-15 18:52:58 +0000 | [diff] [blame] | 59 | <!-- don't include validationtck, it is not really a sample --> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 60 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 61 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 62 | <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.com | 6cd61e9 | 2009-01-16 19:50:20 +0000 | [diff] [blame] | 69 | <fileset dir="${gwt.build.out}/samples" includes="*/war/*/*.cache.html,*/war/*/*.cache.js"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 70 | </length> |
| 71 | <echo message="compiled size of all samples is ${gwt.sample.length} bytes."/> |
| 72 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 73 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 74 | <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.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 79 | |
cramsdale@google.com | 408e75e | 2010-08-20 15:26:19 +0000 | [diff] [blame] | 80 | <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.com | 97def99 | 2010-08-26 22:18:52 +0000 | [diff] [blame] | 85 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 86 | <target name="test" description="Test GWT"> |
| 87 | <antcall target="-do"> |
| 88 | <param name="target" value="test" /> |
| 89 | </antcall> |
| 90 | </target> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 91 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 92 | <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.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 96 | </project> |