gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 1 | <project name="ant-gwt" 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/ant-gwt" /> |
| 4 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 5 | |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 6 | <property name="gwt.junit.testcase.antgwt.includes" value="**/*Test.class" /> |
| 7 | <property name="gwt.junit.testcase.antgwt.excludes" value="" /> |
| 8 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 9 | <target name="compile" description="Compiles this project"> |
| 10 | <mkdir dir="${javac.out}" /> |
| 11 | <gwt.javac> |
| 12 | <classpath> |
| 13 | <pathelement location="${gwt.tools.lib}/apache/ant-1.6.5.jar" /> |
| 14 | </classpath> |
| 15 | </gwt.javac> |
| 16 | </target> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 17 | |
jlabanca@google.com | 875439d | 2009-10-02 14:37:34 +0000 | [diff] [blame] | 18 | <target name="compile.tests" depends="build, compile.emma.if.enabled" description="Compiles the test code for this project"> |
scottb@google.com | 359e55c | 2009-03-13 00:26:54 +0000 | [diff] [blame] | 19 | <mkdir dir="${javac.junit.out}" /> |
| 20 | <gwt.javac srcdir="test" destdir="${javac.junit.out}"> |
| 21 | <classpath> |
| 22 | <pathelement location="${javac.out}" /> |
| 23 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 24 | </classpath> |
| 25 | </gwt.javac> |
| 26 | </target> |
| 27 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 28 | <target name="build" depends="compile" description="Packages this project into a jar"> |
| 29 | <mkdir dir="${gwt.build.lib}" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 30 | <!-- we can't use the gwt.jar macro, as it needs the gwt-ant.jar being packaged here --> |
| 31 | <jar destfile="${gwt.build.lib}/${ant.project.name}.jar" duplicate="fail" filesonly="true" |
| 32 | index="true" update="true"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 33 | <fileset dir="${javac.out}" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 34 | <fileset dir="src" /> |
| 35 | </jar> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 36 | </target> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 37 | |
scottb@google.com | 359e55c | 2009-03-13 00:26:54 +0000 | [diff] [blame] | 38 | <target name="test" depends="build, compile.tests" description="Run unit tests for this project."> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 39 | <fileset id="tests.antgwt" dir="${javac.junit.out}" includes="${gwt.junit.testcase.antgwt.includes}" excludes="${gwt.junit.testcase.antgwt.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 40 | <gwt.junit test.name="ant-gwt" test.out="${junit.out}" |
| 41 | test.cases="tests.antgwt" /> |
scottb@google.com | 359e55c | 2009-03-13 00:26:54 +0000 | [diff] [blame] | 42 | </target> |
| 43 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 44 | <target name="checkstyle" description="Static analysis of source"> |
| 45 | <gwt.checkstyle> |
| 46 | <fileset dir="src" /> |
| 47 | </gwt.checkstyle> |
| 48 | </target> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 49 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 50 | <target name="clean" description="Cleans this project's intermediate and output files"> |
| 51 | <delete dir="${project.build}" /> |
| 52 | <delete file="${project.lib}" /> |
| 53 | </target> |
gwt.team.scottb | b05c900 | 2006-12-12 09:53:31 +0000 | [diff] [blame] | 54 | |
| 55 | </project> |