blob: 4efa2f8f4a30d4be0497f7d5445476d5021fe128 [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"
10 location="tools/api-checker/config/gwt14_15userApi.conf"/>
11 <property name="gwt.apicheck.oldroot"
12 location="../gwt-1.4"/>
fabbott@google.com831b44c2008-04-28 15:22:02 +000013
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000014 <target name="dist" depends="dev, user, servlet, tools, jni, doc, samples" description="Run the distributions">
15 <gwt.ant dir="distro-source" />
16 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000017
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000018 <target name="dev" depends="buildtools" description="Run dev">
19 <gwt.ant dir="dev" />
20 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000021
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000022 <target name="user" depends="buildtools, dev" description="Run user">
23 <gwt.ant dir="user" />
24 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000025
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000026 <target name="tools" depends="buildtools, user" description="Run tools">
27 <gwt.ant dir="tools" />
28 </target>
gwt.team.mmendez4449b342007-04-10 19:41:44 +000029
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000030 <target name="servlet" depends="buildtools, user" description="Run servlet">
31 <gwt.ant dir="servlet" />
32 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000033
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000034 <target name="jni" description="Run jni">
35 <gwt.ant dir="jni" />
36 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000037
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000038 <target name="doc" depends="buildtools, user" description="Build doc">
39 <gwt.ant dir="doc" />
40 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000041
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000042 <target name="samples" depends="dev, user" description="Build samples">
43 <gwt.ant dir="samples" />
44 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000045
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000046 <target name="buildtools" description="Build the build tools">
47 <gwt.ant dir="build-tools" />
48 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000049
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000050 <target name="-do" depends="dist" description="Run all subprojects" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000051
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000052 <target name="build" description="Builds GWT">
53 <antcall target="-do">
54 <param name="target" value="build" />
55 </antcall>
56 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000057
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000058 <target name="checkstyle" description="Static analysis of GWT source">
59 <antcall target="-do">
60 <param name="target" value="checkstyle" />
61 </antcall>
62 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000063
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000064 <target name="test" depends="build" description="Test GWT">
65 <antcall target="-do">
66 <param name="target" value="test" />
67 </antcall>
68 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000069
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000070 <target name="clean" description="Cleans the entire GWT build">
71 <delete dir="${gwt.build}" />
72 </target>
fabbott@google.com831b44c2008-04-28 15:22:02 +000073
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000074 <target name="apicheck" depends="build"
75 description="Checks API compatibility to prior GWT revision">
76 <copy tofile="${gwt.build.out}/userApi.conf" filtering="false"
77 file="${gwt.apicheck.config}"
78 overwrite="true">
79 <filterset>
80 <filter token="OLDROOT"
81 value="${gwt.apicheck.oldroot}"/>
82 </filterset>
83 </copy>
84 <java failonerror="true" fork="true"
85 classname="com.google.gwt.tools.apichecker.ApiCompatibilityChecker">
86 <classpath>
87 <pathelement location="${gwt.build.out}/tools/api-checker/bin"/>
88 <pathelement location="${gwt.build.out}/dev/core/bin"/>
89 <pathelement location="${gwt.build.out}/user/bin"/>
90 <pathelement location="${gwt.tools.lib}/eclipse/jdt-3.3.1.jar"/>
91 <pathelement path="${java.class.path}"/>
92 </classpath>
93 <arg file="${gwt.build.out}/userApi.conf"/>
94 </java>
95 </target>
fabbott@google.com831b44c2008-04-28 15:22:02 +000096
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000097</project>