blob: 58cc15ee4500809591eefa12646e91f1803c9689 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="GWT" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location="." />
3 <property name="project.tail" value="" />
4 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00005
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00006 <!-- "build" is the default when subprojects are directly targetted -->
7 <property name="target" value="build" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00008
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00009 <property name="gwt.apicheck.config"
amitmanjhi@google.com83b76232009-05-19 19:47:16 +000010 location="tools/api-checker/config/gwt16_20userApi.conf"/>
fabbott@google.com831b44c2008-04-28 15:22:02 +000011
jat@google.com04912f22008-11-26 00:21:22 +000012 <target name="buildonly" depends="dev, user, servlet, jni" description="Build without docs/samples">
13 <gwt.ant dir="distro-source" />
14 </target>
15
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000016 <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.scottb14c5b9d2006-12-10 06:06:08 +000019
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000020 <target name="dev" depends="buildtools" description="Run dev">
21 <gwt.ant dir="dev" />
22 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000023
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000024 <target name="user" depends="buildtools, dev" description="Run user">
25 <gwt.ant dir="user" />
26 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000027
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000028 <target name="tools" depends="buildtools, user" description="Run tools">
29 <gwt.ant dir="tools" />
30 </target>
gwt.team.mmendez4449b342007-04-10 19:41:44 +000031
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000032 <target name="servlet" depends="buildtools, user" description="Run servlet">
33 <gwt.ant dir="servlet" />
34 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000035
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000036 <target name="jni" description="Run jni">
37 <gwt.ant dir="jni" />
38 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000039
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000040 <target name="doc" depends="buildtools, user" description="Build doc">
41 <gwt.ant dir="doc" />
42 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000043
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000044 <target name="samples" depends="dev, user" description="Build samples">
45 <gwt.ant dir="samples" />
46 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000047
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000048 <target name="buildtools" description="Build the build tools">
49 <gwt.ant dir="build-tools" />
50 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000051
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000052 <target name="-do" depends="dist" description="Run all subprojects" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000053
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000054 <target name="build" description="Builds GWT">
55 <antcall target="-do">
56 <param name="target" value="build" />
57 </antcall>
58 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000059
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000060 <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.scottb14c5b9d2006-12-10 06:06:08 +000065
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000066 <target name="test" depends="build" description="Test GWT">
67 <antcall target="-do">
68 <param name="target" value="test" />
69 </antcall>
70 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000071
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000072 <target name="clean" description="Cleans the entire GWT build">
73 <delete dir="${gwt.build}" />
74 </target>
fabbott@google.com831b44c2008-04-28 15:22:02 +000075
ecc@google.comed46bf82009-01-29 17:07:24 +000076 <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.com0e2dc6282008-08-22 16:09:01 +000080 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.com0e2dc6282008-08-22 16:09:01 +000084 </copy>
85 <java failonerror="true" fork="true"
86 classname="com.google.gwt.tools.apichecker.ApiCompatibilityChecker">
jat@google.come7f61a72008-12-24 00:45:21 +000087 <jvmarg line="-Xmx512m" />
88 <sysproperty key="gwt.devjar" value="${gwt.dev.staging.jar}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000089 <classpath>
90 <pathelement location="${gwt.build.out}/tools/api-checker/bin"/>
scottb@google.com22e24742009-04-02 23:43:08 +000091 <fileset dir="${gwt.build.lib}" includes="gwt-user.jar,gwt-dev-*.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000092 <pathelement path="${java.class.path}"/>
amitmanjhi@google.comfe888202009-05-19 01:02:22 +000093 <pathelement location="${gwt.tools.lib}/apache/ant-1.6.5.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000094 </classpath>
amitmanjhi@google.comfe888202009-05-19 01:02:22 +000095 <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.come7f61a72008-12-24 00:45:21 +000097 <arg value="-configFile"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000098 <arg file="${gwt.build.out}/userApi.conf"/>
amitmanjhi@google.comfe888202009-05-19 01:02:22 +000099 <arg value="-logLevel"/>
100 <arg value="ERROR"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000101 </java>
102 </target>
ecc@google.comed46bf82009-01-29 17:07:24 +0000103
104 <target name="apicheck" depends="build,apicheck-nobuild"/>
105
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000106</project>