gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 1 | <project name="doc" default="all" basedir="."> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <property name="gwt.root" location=".." /> |
| 3 | <property name="project.tail" value="doc" /> |
| 4 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 5 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 6 | <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.scottb | 428b263 | 2006-12-12 22:40:34 +0000 | [diff] [blame] | 7 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 8 | <property.ensure name="gwt.user.jar" location="${gwt.build.lib}/gwt-user.jar" /> |
| 9 | <!-- Platform shouldn't matter here, just picking one --> |
jat@google.com | 0b1619e | 2009-09-20 19:33:31 +0000 | [diff] [blame] | 10 | <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 11 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 12 | <property name="USER_PKGS" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 13 | 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.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 14 | <property name="LANG_PKGS" value="java.lang;java.lang.annotation;java.util;java.io;java.sql" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 15 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 16 | <!-- Individual classes to include when we don't want to |
| 17 | include an entire package. |
| 18 | --> |
| 19 | <property name="USER_CLASSES" |
jat@google.com | 2d98f5d | 2009-12-04 19:43:36 +0000 | [diff] [blame] | 20 | 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.com | 6435ea2 | 2008-06-11 01:12:18 +0000 | [diff] [blame] | 21 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 22 | <!-- |
| 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.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 33 | <pathelement location="${gwt.root}/bikeshed/src" /> |
| 34 | <pathelement location="${gwt.root}/bikeshed/super" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 35 | </path> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 36 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 37 | <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.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 43 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 44 | <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.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 50 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 51 | <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.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 64 | <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.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 70 | <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.com | c2f8468 | 2010-06-29 18:47:56 +0000 | [diff] [blame] | 87 | <jvmarg value="-Xmx512M" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 88 | <arg value="-quiet" /> |
scottb@google.com | 566806a | 2008-08-29 00:03:51 +0000 | [diff] [blame] | 89 | <arg value="-notimestamp" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 90 | <arg value="-source" /> |
| 91 | <arg value="1.5" /> |
| 92 | <arg value="-windowtitle" /> |
| 93 | <arg value="Google Web Toolkit Javadoc" /> |
jlabanca@google.com | 2169352 | 2010-01-26 18:25:12 +0000 | [diff] [blame] | 94 | <arg value="-doctitle" /> |
| 95 | <arg value="Google Web Toolkit API Reference" /> |
| 96 | <arg value="-header" /> |
| 97 | <arg value="GWT ${gwt.version}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 98 | <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.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 114 | |
kplatfoot@google.com | 39e4d34 | 2010-01-25 18:18:32 +0000 | [diff] [blame] | 115 | <target name="emul-ezt"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 116 | <outofdate> |
| 117 | <sourcefiles> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 118 | <fileset dir="${gwt.root}/user/super/com/google/gwt/emul"> |
| 119 | <include name="**/*.java" /> |
| 120 | </fileset> |
| 121 | </sourcefiles> |
| 122 | <targetfiles> |
kplatfoot@google.com | 39e4d34 | 2010-01-25 18:18:32 +0000 | [diff] [blame] | 123 | <pathelement path="${project.build}/emul-ezt/fragment.html" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 124 | </targetfiles> |
| 125 | <sequential> |
kplatfoot@google.com | 39e4d34 | 2010-01-25 18:18:32 +0000 | [diff] [blame] | 126 | <echo>Building JRE emulation EZT</echo> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 127 | <java classpathref="DOC_PATH" classname="com.google.doctool.JreDocTool" fork="yes" failonerror="true"> |
| 128 | <arg value="-out" /> |
kplatfoot@google.com | 39e4d34 | 2010-01-25 18:18:32 +0000 | [diff] [blame] | 129 | <arg value="${project.build}/emul-ezt/fragment.html" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 130 | <arg value="-classpath" /> |
| 131 | <arg pathref="USER_CLASS_PATH" /> |
| 132 | <arg value="-sourcepath" /> |
bruce@google.com | 170d878 | 2009-02-12 14:44:31 +0000 | [diff] [blame] | 133 | <arg path="${gwt.root}/user/super/com/google/gwt/emul:${gwt.root}/dev/core/super/com/google/gwt/dev/jjs/intrinsic" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 134 | <arg value="-packages" /> |
| 135 | <arg value="${LANG_PKGS}" /> |
| 136 | </java> |
| 137 | </sequential> |
| 138 | </outofdate> |
| 139 | </target> |
scottb@google.com | ee1c8bb | 2008-02-11 17:27:41 +0000 | [diff] [blame] | 140 | |
kplatfoot@google.com | 39e4d34 | 2010-01-25 18:18:32 +0000 | [diff] [blame] | 141 | <target name="build" depends="javadoc, emul-ezt" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 142 | </project> |