1 <project name="testng" default="run" basedir="."> 2 3 <property name="testng.home" value="c:/java/testng" /> 4 <property name="lib.dir" value="${testng.home}/lib"/> 5 <property name="testng.jar" value="${testng.home}/testng-2.5-jdk15.jar" /> 6 7 <path id="run.cp"> 8 <!-- 9 <path refid="compile.cp"/> 10 --> 11 <pathelement location="build" /> 12 <pathelement location="${lib.dir}/qdox-1.5.jar"/> 13 <pathelement location="${java.home}/../lib/tools.jar"/> 14 </path> 15 16 <target name="run" description="Run tests" > 17 <echo>Defining task from ${testng.jar}</echo> 18 <taskdef name="testng" 19 classname="org.testng.TestNGAntTask" 20 classpath="${testng.jar}" /> 21 22 <testng classpathref="run.cp" 23 dumpcommand="true" verbose="9" outputdir="test-outputs"> 24 <classfileset dir="build"> 25 <include name="**/justin/*Test*.class" /> 26 </classfileset> 27 </testng> 28 </target> 29 30 </project> 31