<!--
crash.xml
Author: Christoph Csallner

====================================================================
Testee Ant build file, located in testee root directory
Compiles testee, calls cnc.xml to generate, compile, run, and archive tests.
Adapt properties below to your project and environment settings.
====================================================================
-->

<project name="P1s1" default="jcrasher" basedir=".">
  <description>
		Build and run JCrasher on testee.
	</description>
	
  <!--Environment-->
	<property name="cnc.version" value="0.8.19"/>
	<property name="cnc.jar" value="c:\lib\cnc-${cnc.version}.jar"/>
	
  <!--Project-->
	<property name="classpath" value=""/>		<!--Libraries required by the testee-->
  <property name="src" value="src"/> <!--no backslashes as used as pattern-->
  <property name="bin" value="jcrasher-bin"/>
	<property name="test.src" value="jcrasher-test-src"/> 
	<property name="test.bin" value="jcrasher-test-bin"/>
	<property name="testee.list.filename" value="crashees.txt"/>
	<property name="jcrasher.params" value="--verbose --depth=3"/>  <!--JCrasher specific-->


	<!--jcrasher-->
	<target name="jcrasher">
		<unjar src="${cnc.jar}" dest=".">
			<patternset includes="jcrasher.xml"/>
		</unjar>
		<ant antfile="jcrasher.xml" dir="." target="test.archive"/>
		<delete file="jcrasher.xml"/>
	</target>

	
	<!--clean-->
	<target name="clean"	description="delete all generated files except the archive-bundle">
		<delete dir="${bin}"/>
		<delete dir="${test.src}"/>
		<delete dir="${test.bin}"/>
		<delete>
	  	<fileset dir="${basedir}">  <!--deletes . if nested patternsets omitted-->
	  		<patternset includes="*.jcrasher.txt,*.junit.txt"/>
	  	</fileset>		
		</delete>
	</target>			
</project>
