<project name="dashboard" default="generate_dashboard">

	<target name="validate_project_files">
		<!-- Make sure the files are valid before generating dashboard -->
		<xmlvalidate 	failonerror="yes" lenient="no" warn="yes"
		>
			<fileset dir="." includes="*.prj.xml"/>
			<attribute name="http://xml.org/sax/features/validation" value="true"/>
			<attribute name="http://apache.org/xml/features/validation/schema"  value="true"/>
		</xmlvalidate>
		<echo message="Project files have been validated"  />
	</target>

	<target name="generate_dashboard" depends="validate_project_files">
		<!-- Generate a dashboard from the project files -->
		<xslt in="project_list.xml" out="dashboard.html"
			style="project.xsl" force="true"
		/>
	</target>
</project>
