blob: ef5e530dc13b7ed62db265570b9031b8958d51f0 [file] [log] [blame]
gwt.team.scottbb05c9002006-12-12 09:53:31 +00001<project name="ant-gwt" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <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.scottbb05c9002006-12-12 09:53:31 +00005
jlabanca@google.com81244562009-08-05 19:55:36 +00006 <property name="gwt.junit.testcase.antgwt.includes" value="**/*Test.class" />
7 <property name="gwt.junit.testcase.antgwt.excludes" value="" />
8
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00009 <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.scottbb05c9002006-12-12 09:53:31 +000017
jlabanca@google.com875439d2009-10-02 14:37:34 +000018 <target name="compile.tests" depends="build, compile.emma.if.enabled" description="Compiles the test code for this project">
scottb@google.com359e55c2009-03-13 00:26:54 +000019 <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.com0e2dc6282008-08-22 16:09:01 +000028 <target name="build" depends="compile" description="Packages this project into a jar">
29 <mkdir dir="${gwt.build.lib}" />
fabbott@google.com25305472009-06-10 21:39:00 +000030 <!-- 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.com0e2dc6282008-08-22 16:09:01 +000033 <fileset dir="${javac.out}" />
fabbott@google.com25305472009-06-10 21:39:00 +000034 <fileset dir="src" />
35 </jar>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000036 </target>
gwt.team.scottbb05c9002006-12-12 09:53:31 +000037
scottb@google.com359e55c2009-03-13 00:26:54 +000038 <target name="test" depends="build, compile.tests" description="Run unit tests for this project.">
jlabanca@google.com81244562009-08-05 19:55:36 +000039 <fileset id="tests.antgwt" dir="${javac.junit.out}" includes="${gwt.junit.testcase.antgwt.includes}" excludes="${gwt.junit.testcase.antgwt.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +000040 <gwt.junit test.name="ant-gwt" test.out="${junit.out}"
41 test.cases="tests.antgwt" />
scottb@google.com359e55c2009-03-13 00:26:54 +000042 </target>
43
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000044 <target name="checkstyle" description="Static analysis of source">
45 <gwt.checkstyle>
46 <fileset dir="src" />
47 </gwt.checkstyle>
48 </target>
gwt.team.scottbb05c9002006-12-12 09:53:31 +000049
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000050 <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.scottbb05c9002006-12-12 09:53:31 +000054
55</project>