gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 1 | <project name="doc" default="all" basedir="."> |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +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 | |
gwt.team.scottb | 428b263 | 2006-12-12 22:40:34 +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." /> |
| 7 | |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +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 --> |
| 10 | <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev-linux.jar" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 11 | |
gwt.team.jat | 3a9d9cc | 2008-03-17 23:50:16 +0000 | [diff] [blame] | 12 | <property name="USER_PKGS" |
| 13 | value="com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.typeinfo;com.google.gwt.i18n.client;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.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.http.client;com.google.gwt.junit.viewer.client" /> |
scottb@google.com | ee1c8bb | 2008-02-11 17:27:41 +0000 | [diff] [blame] | 14 | <property name="LANG_PKGS" value="java.lang;java.lang.annotation;java.util;java.io" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 15 | |
gwt.team.jat | d475896 | 2007-02-28 20:26:52 +0000 | [diff] [blame] | 16 | <!-- |
| 17 | *** Note that if the USER_SOURCE_PATH paths are updated, |
| 18 | the fileset dependencies in the outofdate tags in the doc, |
| 19 | user, and javadoc targets must be updated as well. |
| 20 | --> |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 21 | <path id="USER_SOURCE_PATH"> |
| 22 | <pathelement location="${gwt.root}/user/src" /> |
| 23 | <pathelement location="${gwt.root}/user/javadoc" /> |
| 24 | <pathelement location="${gwt.root}/user/super" /> |
| 25 | <pathelement location="${gwt.root}/dev/core/src" /> |
| 26 | </path> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 27 | |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 28 | <path id="USER_CLASS_PATH"> |
| 29 | <pathelement location="${gwt.user.jar}" /> |
| 30 | <pathelement location="${gwt.dev.jar}" /> |
| 31 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
scottb@google.com | 612b374 | 2008-01-30 03:35:23 +0000 | [diff] [blame] | 32 | <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" /> |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 33 | </path> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 34 | |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 35 | <path id="DOC_PATH"> |
| 36 | <pathelement location="./src" /> |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 37 | <pathelement location="${gwt.build.lib}/gwt-doctool.jar" /> |
gwt.team.scottb | 66242e9 | 2006-12-11 22:25:16 +0000 | [diff] [blame] | 38 | <path path="${java.tools.path}" /> |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 39 | <path refid="USER_SOURCE_PATH" /> |
| 40 | </path> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 41 | |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 42 | <target name="javadoc"> |
gwt.team.jat | d475896 | 2007-02-28 20:26:52 +0000 | [diff] [blame] | 43 | <outofdate> |
| 44 | <sourcefiles> |
| 45 | <fileset file="./src/gwt-user.html" /> |
| 46 | <fileset dir="${gwt.root}/user/src"> |
| 47 | <include name="**/*.java" /> |
| 48 | </fileset> |
| 49 | <fileset dir="${gwt.root}/user/javadoc"> |
| 50 | <include name="**/*.java" /> |
| 51 | </fileset> |
| 52 | <fileset dir="${gwt.root}/user/super"> |
| 53 | <include name="**/*.java" /> |
| 54 | </fileset> |
| 55 | <fileset dir="${gwt.root}/dev/core/src"> |
| 56 | <include name="**/*.java" /> |
| 57 | </fileset> |
| 58 | </sourcefiles> |
| 59 | <targetfiles> |
| 60 | <!-- |
| 61 | only checks one output file, will not rebuild other |
| 62 | files if this one is up to date |
| 63 | --> |
| 64 | <pathelement path="${project.build}/javadoc/index.html" /> |
| 65 | </targetfiles> |
| 66 | <sequential> |
| 67 | <echo>Building javadoc</echo> |
| 68 | <java classpathref="DOC_PATH" classname="com.google.doctool.custom.GWTJavaDoclet" fork="yes" failonerror="true"> |
| 69 | <arg value="-quiet" /> |
| 70 | <arg value="-source" /> |
gwt.team.scottb | 452a7e3 | 2007-08-21 02:34:57 +0000 | [diff] [blame] | 71 | <arg value="1.5" /> |
gwt.team.bruce | 07598d3 | 2007-04-03 22:14:32 +0000 | [diff] [blame] | 72 | <arg value="-encoding"/> |
| 73 | <arg value="UTF-8"/> |
gwt.team.jat | d475896 | 2007-02-28 20:26:52 +0000 | [diff] [blame] | 74 | <arg value="-d" /> |
| 75 | <arg value="${project.build}/javadoc" /> |
| 76 | <arg value="-classpath" /> |
| 77 | <arg pathref="USER_CLASS_PATH" /> |
| 78 | <arg value="-sourcepath" /> |
| 79 | <arg pathref="USER_SOURCE_PATH" /> |
| 80 | <arg value="-examplepackages" /> |
gwt.team.mmendez | 4449b34 | 2007-04-10 19:41:44 +0000 | [diff] [blame] | 81 | <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" /> |
gwt.team.jat | d475896 | 2007-02-28 20:26:52 +0000 | [diff] [blame] | 82 | <arg value="-packages" /> |
| 83 | <arg value="${USER_PKGS}" /> |
| 84 | </java> |
| 85 | </sequential> |
| 86 | </outofdate> |
gwt.team.scottb | 6ba31b8 | 2006-12-08 23:38:16 +0000 | [diff] [blame] | 87 | </target> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 88 | |
scottb@google.com | ee1c8bb | 2008-02-11 17:27:41 +0000 | [diff] [blame] | 89 | <target name="wiki-lang"> |
| 90 | <outofdate> |
| 91 | <sourcefiles> |
| 92 | <fileset file="./src/RefJreHeader.wiki" /> |
| 93 | <fileset dir="${gwt.root}/user/super/com/google/gwt/emul"> |
| 94 | <include name="**/*.java" /> |
| 95 | </fileset> |
| 96 | </sourcefiles> |
| 97 | <targetfiles> |
| 98 | <pathelement path="${project.build}/wiki/RefJreEmulation.wiki" /> |
| 99 | </targetfiles> |
| 100 | <sequential> |
| 101 | <java classpathref="DOC_PATH" classname="com.google.doctool.JreDocTool" fork="yes" failonerror="true"> |
| 102 | <arg value="-out" /> |
| 103 | <arg value="${project.build}/wiki/RefJreEmulation.wiki" /> |
| 104 | <arg value="-header" /> |
| 105 | <arg value="./src/RefJreHeader.wiki" /> |
| 106 | <arg value="-classpath" /> |
| 107 | <arg pathref="USER_CLASS_PATH" /> |
| 108 | <arg value="-sourcepath" /> |
| 109 | <arg path="${gwt.root}/user/super/com/google/gwt/emul" /> |
| 110 | <arg value="-packages" /> |
| 111 | <arg value="${LANG_PKGS}" /> |
| 112 | </java> |
| 113 | </sequential> |
| 114 | </outofdate> |
| 115 | </target> |
| 116 | |
| 117 | <target name="build" depends="javadoc, wiki-lang" /> |
gwt.team.jgw | 89075d4 | 2006-12-08 20:51:13 +0000 | [diff] [blame] | 118 | </project> |