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 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 13 | <target name="hello" description="Build hello"> |
| 14 | <gwt.ant dir="hello" /> |
| 15 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 16 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 17 | <target name="i18n" description="Build i18n"> |
| 18 | <gwt.ant dir="i18n" /> |
| 19 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 20 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 21 | <target name="json" description="Build json"> |
| 22 | <gwt.ant dir="json" /> |
| 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="mail" description="Build mail"> |
| 26 | <gwt.ant dir="mail" /> |
| 27 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 28 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 29 | <target name="showcase" description="Build showcase"> |
| 30 | <gwt.ant dir="showcase" /> |
| 31 | </target> |
gwt.team.jlabanca | 40faa08 | 2008-03-12 00:08:50 +0000 | [diff] [blame] | 32 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 33 | <target name="simplexml" description="Build simplexml"> |
| 34 | <gwt.ant dir="simplexml" /> |
| 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="-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.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 46 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 47 | <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"> |
scottb@google.com | 6cd61e9 | 2009-01-16 19:50:20 +0000 | [diff] [blame] | 54 | <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] | 55 | </length> |
| 56 | <echo message="compiled size of all samples is ${gwt.sample.length} bytes."/> |
| 57 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 58 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 59 | <target name="checkstyle" description="Static analysis of GWT source"> |
| 60 | <antcall target="-do"> |
| 61 | <param name="target" value="checkstyle" /> |
| 62 | </antcall> |
| 63 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 64 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 65 | <target name="test" description="Test GWT"> |
| 66 | <antcall target="-do"> |
| 67 | <param name="target" value="test" /> |
| 68 | </antcall> |
| 69 | </target> |
gwt.team.scottb | 6996532 | 2006-12-19 23:58:19 +0000 | [diff] [blame] | 70 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 71 | <target name="clean" description="Cleans this project's intermediate and output files"> |
| 72 | <delete dir="${project.build}" /> |
| 73 | <delete dir="${gwt.build.out}/samples-scripts" /> |
| 74 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 75 | </project> |