blob: 15ea822dfe446663443b0d3e4993cce8868a792f [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"
jat@google.come7f61a72008-12-24 00:45:21 +000012 value="../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
ecc@google.comed46bf82009-01-29 17:07:24 +000078 <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.com0e2dc6282008-08-22 16:09:01 +000082 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.come7f61a72008-12-24 00:45:21 +000093 <jvmarg line="-Xmx512m" />
94 <sysproperty key="gwt.devjar" value="${gwt.dev.staging.jar}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000095 <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.come7f61a72008-12-24 00:45:21 +0000102 <arg value="-configFile"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000103 <arg file="${gwt.build.out}/userApi.conf"/>
104 </java>
105 </target>
ecc@google.comed46bf82009-01-29 17:07:24 +0000106
107 <target name="apicheck" depends="build,apicheck-nobuild"/>
108
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000109</project>