gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="doctool" default="build" 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="build-tools/doctool" /> |
| 4 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +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 | 6e4a170 | 2006-12-12 04:23:38 +0000 | [diff] [blame] | 7 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 8 | <target name="compile" description="Compiles this project"> |
| 9 | <mkdir dir="${javac.out}" /> |
| 10 | <gwt.javac> |
| 11 | <classpath> |
| 12 | <pathelement location="${java.tools.path}" /> |
| 13 | </classpath> |
| 14 | </gwt.javac> |
| 15 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 16 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 17 | <target name="build" depends="compile" description="Packages this project into a jar"> |
| 18 | <mkdir dir="${gwt.build.lib}" /> |
| 19 | <gwt.jar> |
| 20 | <fileset dir="src" /> |
| 21 | <fileset dir="${javac.out}" /> |
| 22 | </gwt.jar> |
| 23 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 24 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 25 | <target name="checkstyle" description="Static analysis of source"> |
| 26 | <gwt.checkstyle> |
| 27 | <fileset dir="src" /> |
| 28 | </gwt.checkstyle> |
| 29 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 30 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 31 | <target name="clean" description="Cleans this project's intermediate and output files"> |
| 32 | <delete dir="${project.build}" /> |
| 33 | <delete file="${project.lib}" /> |
| 34 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 35 | |
| 36 | </project> |