blob: cf6d29a9de03233ae9c5cc707397744c9fcd6c21 [file] [log] [blame]
<project name="ant-gwt" default="build" basedir=".">
<property name="gwt.root" location="../.." />
<property name="project.tail" value="build_tools/ant_gwt" />
<import file="${gwt.root}/common.ant.xml" />
<property name="gwt.junit.testcase.antgwt.includes" value="**/*Test.class" />
<property name="gwt.junit.testcase.antgwt.excludes" value="" />
<target name="compile" description="Compiles this project">
<mkdir dir="${javac.out}" />
<gwt.javac>
<classpath>
<pathelement location="${gwt.tools.lib}/apache/ant-1.6.5.jar" />
</classpath>
</gwt.javac>
</target>
<target name="compile.tests" depends="build, compile.emma.if.enabled" description="Compiles the test code for this project">
<mkdir dir="${javac.junit.out}" />
<gwt.javac srcdir="test" destdir="${javac.junit.out}" includeantruntime="true">
<classpath>
<pathelement location="${javac.out}" />
<pathelement location="${gwt.tools.lib}/junit/junit-4.8.2.jar" />
</classpath>
</gwt.javac>
</target>
<target name="build" depends="compile" description="Packages this project into a jar">
<mkdir dir="${gwt.build.lib}" />
<!-- we can't use the gwt.jar macro, as it needs the gwt-ant.jar being packaged here -->
<jar destfile="${gwt.build.lib}/${ant.project.name}.jar" duplicate="fail" filesonly="true"
index="true" update="true">
<fileset dir="${javac.out}" />
<fileset dir="src" />
</jar>
</target>
<target name="test" depends="build, compile.tests" description="Run unit tests for this project.">
<fileset id="tests.antgwt" dir="${javac.junit.out}" includes="${gwt.junit.testcase.antgwt.includes}" excludes="${gwt.junit.testcase.antgwt.excludes}" />
<gwt.junit test.name="ant-gwt" test.out="${junit.out}"
test.cases="tests.antgwt" />
</target>
<target name="checkstyle" description="Static analysis of source">
<gwt.checkstyle>
<fileset dir="src" />
</gwt.checkstyle>
</target>
<target name="clean" description="Cleans this project's intermediate and output files">
<delete dir="${project.build}" />
<delete file="${project.lib}" />
</target>
</project>