gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="platforms"> |
| 2 | <import file="${gwt.root}/common.ant.xml" /> |
| 3 | |
| 4 | <!-- "build" is the default when subprojects are directly targetted --> |
| 5 | <property name="target" value="build" /> |
| 6 | |
| 7 | <available file="core/build.xml" type="file" property="core.exists" /> |
| 8 | <target name="core" description="Run core" if="core.exists"> |
| 9 | <gwt.ant dir="core" /> |
| 10 | </target> |
| 11 | |
| 12 | <target name="linux" depends="core" description="Run linux"> |
| 13 | <gwt.ant dir="linux" /> |
| 14 | </target> |
| 15 | |
| 16 | <target name="windows" depends="core" description="Run windows"> |
| 17 | <gwt.ant dir="windows" /> |
| 18 | </target> |
| 19 | |
| 20 | <target name="mac" depends="core" description="Run mac"> |
| 21 | <gwt.ant dir="mac" /> |
| 22 | </target> |
| 23 | |
| 24 | <target name="-do" depends="linux, windows, mac" description="Run all platforms" /> |
| 25 | |
| 26 | <target name="build" description="Build each platforms"> |
| 27 | <antcall target="-do"> |
| 28 | <param name="target" value="build" /> |
| 29 | </antcall> |
| 30 | </target> |
| 31 | |
| 32 | <target name="checkstyle" description="Static analysis of source for each platform"> |
| 33 | <antcall target="-do"> |
| 34 | <param name="target" value="checkstyle" /> |
| 35 | </antcall> |
| 36 | </target> |
| 37 | |
| 38 | <target name="test" depends="build" description="Test each platform"> |
| 39 | <antcall target="-do"> |
| 40 | <param name="target" value="test" /> |
| 41 | </antcall> |
| 42 | </target> |
| 43 | |
| 44 | </project> |