blob: 75f19366778e3ae4220b985c10f7b52ae4375c1e [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"
scottb@google.com5f6fdb32008-11-12 21:59:15 +000010 location="tools/api-checker/config/gwt15_16userApi.conf"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000011 <property name="gwt.apicheck.oldroot"
scottb@google.com5f6fdb32008-11-12 21:59:15 +000012 location="../gwt-1.5"/>
fabbott@google.com831b44c2008-04-28 15:22:02 +000013
jat@google.com04912f22008-11-26 00:21:22 +000014 <target name="buildonly" depends="dev, user, servlet, jni" description="Build without docs/samples">
15 <gwt.ant dir="distro-source" />
16 </target>
17
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000018 <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.scottb14c5b9d2006-12-10 06:06:08 +000021
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000022 <target name="dev" depends="buildtools" description="Run dev">
23 <gwt.ant dir="dev" />
24 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000025
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000026 <target name="user" depends="buildtools, dev" description="Run user">
27 <gwt.ant dir="user" />
28 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000029
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000030 <target name="tools" depends="buildtools, user" description="Run tools">
31 <gwt.ant dir="tools" />
32 </target>
gwt.team.mmendez4449b342007-04-10 19:41:44 +000033
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000034 <target name="servlet" depends="buildtools, user" description="Run servlet">
35 <gwt.ant dir="servlet" />
36 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000037
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000038 <target name="jni" description="Run jni">
39 <gwt.ant dir="jni" />
40 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000041
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000042 <target name="doc" depends="buildtools, user" description="Build doc">
43 <gwt.ant dir="doc" />
44 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000045
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000046 <target name="samples" depends="dev, user" description="Build samples">
47 <gwt.ant dir="samples" />
48 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000049
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000050 <target name="buildtools" description="Build the build tools">
51 <gwt.ant dir="build-tools" />
52 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000053
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000054 <target name="-do" depends="dist" description="Run all subprojects" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000055
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000056 <target name="build" description="Builds GWT">
57 <antcall target="-do">
58 <param name="target" value="build" />
59 </antcall>
60 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000061
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000062 <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.scottb14c5b9d2006-12-10 06:06:08 +000067
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000068 <target name="test" depends="build" description="Test GWT">
69 <antcall target="-do">
70 <param name="target" value="test" />
71 </antcall>
72 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000073
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000074 <target name="clean" description="Cleans the entire GWT build">
75 <delete dir="${gwt.build}" />
76 </target>
fabbott@google.com831b44c2008-04-28 15:22:02 +000077
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000078 <target name="apicheck" depends="build"
79 description="Checks API compatibility to prior GWT revision">
80 <copy tofile="${gwt.build.out}/userApi.conf" filtering="false"
81 file="${gwt.apicheck.config}"
82 overwrite="true">
83 <filterset>
84 <filter token="OLDROOT"
85 value="${gwt.apicheck.oldroot}"/>
86 </filterset>
87 </copy>
88 <java failonerror="true" fork="true"
89 classname="com.google.gwt.tools.apichecker.ApiCompatibilityChecker">
90 <classpath>
91 <pathelement location="${gwt.build.out}/tools/api-checker/bin"/>
92 <pathelement location="${gwt.build.out}/dev/core/bin"/>
93 <pathelement location="${gwt.build.out}/user/bin"/>
94 <pathelement location="${gwt.tools.lib}/eclipse/jdt-3.3.1.jar"/>
95 <pathelement path="${java.class.path}"/>
96 </classpath>
97 <arg file="${gwt.build.out}/userApi.conf"/>
98 </java>
99 </target>
fabbott@google.com831b44c2008-04-28 15:22:02 +0000100
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000101</project>