blob: 923731311edd7b7f3352f328c6552963feb2698b [file] [log] [blame]
gwt.team.jgw89075d42006-12-08 20:51:13 +00001<project name="doc" default="all" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="doc" />
4 <import file="${gwt.root}/common.ant.xml" />
gwt.team.jgw89075d42006-12-08 20:51:13 +00005
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00006 <property.ensure name="java.tools.path" location="${java.home}/../lib/tools.jar" unless="build.host.ismac" message="Cannot find ${java.home}/../lib/tools.jar; please use a JDK when building doc rather than a JRE." />
gwt.team.scottb428b2632006-12-12 22:40:34 +00007
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00008 <property.ensure name="gwt.user.jar" location="${gwt.build.lib}/gwt-user.jar" />
9 <!-- Platform shouldn't matter here, just picking one -->
jat@google.com0b1619e2009-09-20 19:33:31 +000010 <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" />
gwt.team.jgw89075d42006-12-08 20:51:13 +000011
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000012 <property name="USER_PKGS"
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +000013 value="com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.cell.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.core.linker;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.shared;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.logging.client;com.google.gwt.benchmarks.client;com.google.gwt.regexp.shared;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.cellview.client;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.uibinder.client;com.google.gwt.rpc.client;com.google.gwt.rpc.server;com.google.gwt.jsonp.client;com.google.gwt.view.client;com.google.gwt.app.client;com.google.gwt.app.place;com.google.gwt.app.util;com.google.gwt.requestfactory.server;com.google.gwt.requestfactory.shared;com.google.gwt.user.valuestore.shared;com.google.gwt.user.valuestore.ui"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000014 <property name="LANG_PKGS" value="java.lang;java.lang.annotation;java.util;java.io;java.sql" />
gwt.team.jgw89075d42006-12-08 20:51:13 +000015
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000016 <!-- Individual classes to include when we don't want to
17 include an entire package.
18 -->
19 <property name="USER_CLASSES"
jat@google.com2d98f5d2009-12-04 19:43:36 +000020 value="${gwt.root}/user/src/com/google/gwt/junit/tools/GWTTestSuite.java:${gwt.root}/user/src/com/google/gwt/i18n/rebind/LocaleUtils.java:${gwt.root}/user/src/com/google/gwt/i18n/server/GwtLocaleFactoryImpl.java:${gwt.root}/user/src/com/google/gwt/i18n/server/GwtLocaleImpl.java" />
scottb@google.com6435ea22008-06-11 01:12:18 +000021
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000022 <!--
23 *** Note that if the USER_SOURCE_PATH paths are updated,
24 the fileset dependencies in the outofdate tags in the
25 javadoc target must be updated as well.
26 -->
27 <path id="USER_SOURCE_PATH">
28 <pathelement location="${gwt.root}/user/src" />
29 <pathelement location="${gwt.root}/user/javadoc" />
30 <pathelement location="${gwt.root}/user/super" />
31 <pathelement location="${gwt.root}/dev/core/src" />
32 <pathelement location="${gwt.root}/dev/core/super" />
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +000033 <pathelement location="${gwt.root}/bikeshed/src" />
34 <pathelement location="${gwt.root}/bikeshed/super" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000035 </path>
gwt.team.jgw89075d42006-12-08 20:51:13 +000036
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000037 <path id="USER_CLASS_PATH">
38 <pathelement location="${gwt.user.jar}" />
39 <pathelement location="${gwt.dev.jar}" />
40 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
41 <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" />
42 </path>
gwt.team.jgw89075d42006-12-08 20:51:13 +000043
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000044 <path id="DOC_PATH">
45 <pathelement location="./src" />
46 <pathelement location="${gwt.build.lib}/gwt-doctool.jar" />
47 <path path="${java.tools.path}" />
48 <path refid="USER_SOURCE_PATH" />
49 </path>
gwt.team.jgw89075d42006-12-08 20:51:13 +000050
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000051 <target name="javadoc">
52 <outofdate>
53 <sourcefiles>
54 <fileset file="./src/gwt-user.html" />
55 <fileset dir="${gwt.root}/user/src">
56 <include name="**/*.java" />
57 </fileset>
58 <fileset dir="${gwt.root}/user/javadoc">
59 <include name="**/*.java" />
60 </fileset>
61 <fileset dir="${gwt.root}/user/super">
62 <include name="**/*.java" />
63 </fileset>
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +000064 <fileset dir="${gwt.root}/bikeshed/src">
65 <include name="**/*.java" />
66 </fileset>
67 <fileset dir="${gwt.root}/bikeshed/super">
68 <include name="**/*.java" />
69 </fileset>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000070 <fileset dir="${gwt.root}/dev/core/src">
71 <include name="**/*.java" />
72 </fileset>
73 <fileset dir="${gwt.root}/dev/core/super">
74 <include name="**/*.java" />
75 </fileset>
76 </sourcefiles>
77 <targetfiles>
78 <!--
79 only checks one output file, will not rebuild other
80 files if this one is up to date
81 -->
82 <pathelement path="${project.build}/javadoc/index.html" />
83 </targetfiles>
84 <sequential>
85 <echo>Building javadoc</echo>
86 <java classpathref="DOC_PATH" classname="com.google.doctool.custom.GWTJavaDoclet" fork="yes" failonerror="true">
avassalotti@google.comc2f84682010-06-29 18:47:56 +000087 <jvmarg value="-Xmx512M" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000088 <arg value="-quiet" />
scottb@google.com566806a2008-08-29 00:03:51 +000089 <arg value="-notimestamp" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000090 <arg value="-source" />
91 <arg value="1.5" />
92 <arg value="-windowtitle" />
93 <arg value="Google Web Toolkit Javadoc" />
jlabanca@google.com21693522010-01-26 18:25:12 +000094 <arg value="-doctitle" />
95 <arg value="Google Web Toolkit API Reference" />
96 <arg value="-header" />
97 <arg value="GWT ${gwt.version}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000098 <arg value="-encoding"/>
99 <arg value="UTF-8"/>
100 <arg value="-d" />
101 <arg value="${project.build}/javadoc" />
102 <arg value="-classpath" />
103 <arg pathref="USER_CLASS_PATH" />
104 <arg value="-sourcepath" />
105 <arg pathref="USER_SOURCE_PATH" />
106 <arg value="-examplepackages" />
107 <arg value="com.google.gwt.examples;com.google.gwt.examples.i18n;com.google.gwt.examples.http.client;com.google.gwt.examples.rpc.server;com.google.gwt.examples.benchmarks" />
108 <arg value="-packages" />
109 <arg value="${USER_PKGS};${USER_CLASSES}" />
110 </java>
111 </sequential>
112 </outofdate>
113 </target>
gwt.team.jgw89075d42006-12-08 20:51:13 +0000114
kplatfoot@google.com39e4d342010-01-25 18:18:32 +0000115 <target name="emul-ezt">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000116 <outofdate>
117 <sourcefiles>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000118 <fileset dir="${gwt.root}/user/super/com/google/gwt/emul">
119 <include name="**/*.java" />
120 </fileset>
121 </sourcefiles>
122 <targetfiles>
kplatfoot@google.com39e4d342010-01-25 18:18:32 +0000123 <pathelement path="${project.build}/emul-ezt/fragment.html" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000124 </targetfiles>
125 <sequential>
kplatfoot@google.com39e4d342010-01-25 18:18:32 +0000126 <echo>Building JRE emulation EZT</echo>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000127 <java classpathref="DOC_PATH" classname="com.google.doctool.JreDocTool" fork="yes" failonerror="true">
128 <arg value="-out" />
kplatfoot@google.com39e4d342010-01-25 18:18:32 +0000129 <arg value="${project.build}/emul-ezt/fragment.html" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000130 <arg value="-classpath" />
131 <arg pathref="USER_CLASS_PATH" />
132 <arg value="-sourcepath" />
bruce@google.com170d8782009-02-12 14:44:31 +0000133 <arg path="${gwt.root}/user/super/com/google/gwt/emul:${gwt.root}/dev/core/super/com/google/gwt/dev/jjs/intrinsic" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000134 <arg value="-packages" />
135 <arg value="${LANG_PKGS}" />
136 </java>
137 </sequential>
138 </outofdate>
139 </target>
scottb@google.comee1c8bb2008-02-11 17:27:41 +0000140
kplatfoot@google.com39e4d342010-01-25 18:18:32 +0000141 <target name="build" depends="javadoc, emul-ezt" />
gwt.team.jgw89075d42006-12-08 20:51:13 +0000142</project>