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