gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="GWT" 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="" /> |
| 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 | <property name="gwt.apicheck.config" |
scottb@google.com | 5f6fdb3 | 2008-11-12 21:59:15 +0000 | [diff] [blame] | 10 | location="tools/api-checker/config/gwt15_16userApi.conf"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 11 | <property name="gwt.apicheck.oldroot" |
jat@google.com | e7f61a7 | 2008-12-24 00:45:21 +0000 | [diff] [blame] | 12 | value="../gwt-1.5"/> |
fabbott@google.com | 831b44c | 2008-04-28 15:22:02 +0000 | [diff] [blame] | 13 | |
jat@google.com | 04912f2 | 2008-11-26 00:21:22 +0000 | [diff] [blame] | 14 | <target name="buildonly" depends="dev, user, servlet, jni" description="Build without docs/samples"> |
| 15 | <gwt.ant dir="distro-source" /> |
| 16 | </target> |
| 17 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 18 | <target name="dist" depends="dev, user, servlet, tools, jni, doc, samples" description="Run the distributions"> |
| 19 | <gwt.ant dir="distro-source" /> |
| 20 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 21 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 22 | <target name="dev" depends="buildtools" description="Run dev"> |
| 23 | <gwt.ant dir="dev" /> |
| 24 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 25 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 26 | <target name="user" depends="buildtools, dev" description="Run user"> |
| 27 | <gwt.ant dir="user" /> |
| 28 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 29 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 30 | <target name="tools" depends="buildtools, user" description="Run tools"> |
| 31 | <gwt.ant dir="tools" /> |
| 32 | </target> |
gwt.team.mmendez | 4449b34 | 2007-04-10 19:41:44 +0000 | [diff] [blame] | 33 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 34 | <target name="servlet" depends="buildtools, user" description="Run servlet"> |
| 35 | <gwt.ant dir="servlet" /> |
| 36 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 37 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 38 | <target name="jni" description="Run jni"> |
| 39 | <gwt.ant dir="jni" /> |
| 40 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 41 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 42 | <target name="doc" depends="buildtools, user" description="Build doc"> |
| 43 | <gwt.ant dir="doc" /> |
| 44 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 45 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 46 | <target name="samples" depends="dev, user" description="Build samples"> |
| 47 | <gwt.ant dir="samples" /> |
| 48 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 49 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 50 | <target name="buildtools" description="Build the build tools"> |
| 51 | <gwt.ant dir="build-tools" /> |
| 52 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 53 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 54 | <target name="-do" depends="dist" description="Run all subprojects" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 55 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 56 | <target name="build" description="Builds GWT"> |
| 57 | <antcall target="-do"> |
| 58 | <param name="target" value="build" /> |
| 59 | </antcall> |
| 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="checkstyle" description="Static analysis of GWT source"> |
| 63 | <antcall target="-do"> |
| 64 | <param name="target" value="checkstyle" /> |
| 65 | </antcall> |
| 66 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 67 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 68 | <target name="test" depends="build" description="Test GWT"> |
| 69 | <antcall target="-do"> |
| 70 | <param name="target" value="test" /> |
| 71 | </antcall> |
| 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="clean" description="Cleans the entire GWT build"> |
| 75 | <delete dir="${gwt.build}" /> |
| 76 | </target> |
fabbott@google.com | 831b44c | 2008-04-28 15:22:02 +0000 | [diff] [blame] | 77 | |
ecc@google.com | ed46bf8 | 2009-01-29 17:07:24 +0000 | [diff] [blame] | 78 | <target name ="presubmit" description="Runs checkstyle,apichecker, and all tests" depends="test,apicheck-nobuild,checkstyle"> |
| 79 | </target> |
| 80 | |
| 81 | <target name="apicheck-nobuild" |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 82 | description="Checks API compatibility to prior GWT revision"> |
| 83 | <copy tofile="${gwt.build.out}/userApi.conf" filtering="false" |
| 84 | file="${gwt.apicheck.config}" |
| 85 | overwrite="true"> |
| 86 | <filterset> |
| 87 | <filter token="OLDROOT" |
| 88 | value="${gwt.apicheck.oldroot}"/> |
| 89 | </filterset> |
| 90 | </copy> |
| 91 | <java failonerror="true" fork="true" |
| 92 | classname="com.google.gwt.tools.apichecker.ApiCompatibilityChecker"> |
jat@google.com | e7f61a7 | 2008-12-24 00:45:21 +0000 | [diff] [blame] | 93 | <jvmarg line="-Xmx512m" /> |
| 94 | <sysproperty key="gwt.devjar" value="${gwt.dev.staging.jar}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 95 | <classpath> |
| 96 | <pathelement location="${gwt.build.out}/tools/api-checker/bin"/> |
| 97 | <pathelement location="${gwt.build.out}/dev/core/bin"/> |
| 98 | <pathelement location="${gwt.build.out}/user/bin"/> |
| 99 | <pathelement location="${gwt.tools.lib}/eclipse/jdt-3.3.1.jar"/> |
| 100 | <pathelement path="${java.class.path}"/> |
| 101 | </classpath> |
jat@google.com | e7f61a7 | 2008-12-24 00:45:21 +0000 | [diff] [blame] | 102 | <arg value="-configFile"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 103 | <arg file="${gwt.build.out}/userApi.conf"/> |
| 104 | </java> |
| 105 | </target> |
ecc@google.com | ed46bf8 | 2009-01-29 17:07:24 +0000 | [diff] [blame] | 106 | |
| 107 | <target name="apicheck" depends="build,apicheck-nobuild"/> |
| 108 | |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 109 | </project> |