blob: c0647f6c62853bda3e1501a9a9aeb40c29b5f095 [file] [log] [blame]
<project name="bikeshed" default="build" basedir=".">
<property name="gwt.root" location=".." />
<property name="project.tail" value="bikeshed" />
<property name="test.args" value="" />
<import file="${gwt.root}/common.ant.xml" />
<property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" />
<property.ensure name="gwt.user.jar" location="${gwt.build.lib}/gwt-user.jar" />
<target name="checkstyle" description="Static analysis of source">
<gwt.checkstyle>
<fileset dir="src" />
</gwt.checkstyle>
<gwt.checkstyle.tests>
<fileset dir="test">
<include name="com/google/**/*.java" />
<include name="test/**" />
</fileset>
</gwt.checkstyle.tests>
</target>
<target name="compile" description="Compile all class files"
unless="compile.complete">
<mkdir dir="${javac.out}" />
<gwt.javac excludes="**/sample/**">
<classpath>
<pathelement location="${gwt.tools.redist}/json/r2_20080312/json.jar" />
<pathelement location="${gwt.dev.jar}" />
<pathelement location="${gwt.user.jar}" />
</classpath>
</gwt.javac>
</target>
<target name="build" depends="compile"
description="Build and package this project">
<mkdir dir="${gwt.build.lib}" />
<gwt.jar>
<fileset dir="src" excludes="**/sample/** **/META-INF/**" />
<fileset dir="${javac.out}" />
</gwt.jar>
</target>
</project>