<project name="samples" default="build" basedir=".">
	<property name="gwtext.root" location=".." />
	<property name="project.tail" value="samples" />
	<import file="${gwtext.root}/common.ant.xml" />

	<!-- "build" is the default when subprojects are directly targetted -->
	<property name="target" value="build" />

	<target name="showcase2" description="Build Showcase">
		<gwt.ant dir="showcase2" />
	</target>
	<target name="charts" description="Build Charts Showcase">
		<gwt.ant dir="charts" />
	</target>

	<target name="maps" description="Build Maps Showcase">
		<gwt.ant dir="maps" />
	</target>
	<!--
	<target name="feedviewer" description="Build feedviewer">
		<gwt.ant dir="feedviewer" />
	</target>
-->
	<!--<target name="i18n" description="Build i18n">
		<gwt.ant dir="i18n" />
	</target>

	<target name="json" description="Build json">
		<gwt.ant dir="json" />
	</target>

	<target name="kitchensink" description="Build kitchensink">
		<gwt.ant dir="kitchensink" />
	</target>

	<target name="mail" description="Build mail">
		<gwt.ant dir="mail" />
	</target>

	<target name="simplexml" description="Build simplexml">
		<gwt.ant dir="simplexml" />
	</target>-->

	<target name="-do" depends="showcase2,charts,maps" description="Run all subprojects" />
	<!--<target name="-do" depends="dynatable, hello, i18n, json, kitchensink, mail, simplexml" description="Run all subprojects" />-->

	<target name="build" description="Builds GWT">
		<antcall target="-do">
			<param name="target" value="build" />
		</antcall>
	</target>

	<target name="checkstyle" description="Static analysis of GWT source">
		<antcall target="-do">
			<param name="target" value="checkstyle" />
		</antcall>
	</target>

	<target name="test" depends="build" description="Test GWT">
		<antcall target="-do">
			<param name="target" value="test" />
		</antcall>
	</target>

	<target name="clean" description="Cleans this project's intermediate and output files">
		<delete dir="${project.build}" />
		<delete dir="${gwtext.build.out}/samples-scripts" />
	</target>
</project>
