
Untitled
By: a guest on
May 8th, 2012 | syntax:
None | size: 0.75 KB | hits: 10 | expires: Never
<fileset id="lib" dir="lib">
<include name="*.jar" />
</fileset>
<fileset id="build" dir="${build.dir}" />
<path id="build.classpath">
<fileset refid="lib" />
<fileset refid="build" />
</path>
<target name="init">
<mkdir dir="${report.dir}" />
<mkdir dir="${build.dir}" />
</target>
<target name="compile" depends="init" description="Compile source">
<javac classpathref="build.classpath" destdir="${build.dir}" nowarn="on">
<src path="${src.dir}" />
</javac>
</target>
<target name="run-tests" depends="compile">
<testng classpathref="build.classpath"
outputDir="${report.dir}"
haltOnFailure="true" verbose="2">
<xmlfileset dir="." includes="testng.xml" />
</testng>
</target>