spoon@google.com | ffc9e23 | 2008-04-21 18:33:15 +0000 | [diff] [blame^] | 1 | <project name="api-checker" default="build" basedir="."> |
| 2 | |
| 3 | <property name="gwt.root" location="../.." /> |
| 4 | <property name="project.tail" value="tools/api-checker" /> |
| 5 | <import file="${gwt.root}/common.ant.xml" /> |
| 6 | |
| 7 | <property name="tools.build" value="${gwt.build.out}/${project.tail}" /> |
| 8 | |
| 9 | <!-- Platform shouldn't matter here, just picking one --> |
| 10 | <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev-linux.jar" /> |
| 11 | <property.ensure name="gwt.user.jar" location="${gwt.build.lib}/gwt-user.jar" /> |
| 12 | |
| 13 | <target name="compile" description="Compile all class files"> |
| 14 | <mkdir dir="${javac.out}" /> |
| 15 | <gwt.javac> |
| 16 | <classpath> |
| 17 | <pathelement location="${gwt.dev.jar}" /> |
| 18 | <pathelement location="${gwt.user.jar}" /> |
| 19 | </classpath> |
| 20 | </gwt.javac> |
| 21 | </target> |
| 22 | |
| 23 | <target name="compile.tests" description="Compiles the test code for this project"> |
| 24 | <mkdir dir="${javac.junit.out}" /> |
| 25 | <gwt.javac srcdir="test" destdir="${javac.junit.out}"> |
| 26 | <classpath> |
| 27 | <pathelement location="${javac.out}" /> |
| 28 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 29 | <pathelement location="${gwt.dev.staging.jar}" /> |
| 30 | <pathelement location="${gwt.dev.jar}" /> |
| 31 | <pathelement location="${gwt.user.jar}" /> |
| 32 | </classpath> |
| 33 | </gwt.javac> |
| 34 | </target> |
| 35 | |
| 36 | <target name="build" depends="compile" description="Build and package this project"> |
| 37 | <mkdir dir="${gwt.build.lib}" /> |
| 38 | |
| 39 | <gwt.jar> |
| 40 | <fileset dir="src" excludes="**/package.html" /> |
| 41 | <fileset dir="${javac.out}" /> |
| 42 | </gwt.jar> |
| 43 | </target> |
| 44 | |
| 45 | |
| 46 | <target name="checkstyle" description="Static analysis of source"> |
| 47 | <gwt.checkstyle> |
| 48 | <fileset dir="src"/> |
| 49 | </gwt.checkstyle> |
| 50 | </target> |
| 51 | |
| 52 | <target name="clean" description="Cleans this project's intermediate and output files"> |
| 53 | <delete dir="${project.build}" /> |
| 54 | <delete file="${project.lib}" /> |
| 55 | </target> |
| 56 | </project> |
| 57 | |