Skip to content

Instantly share code, notes, and snippets.

@bonar
Created April 3, 2009 11:14
Show Gist options
  • Save bonar/89710 to your computer and use it in GitHub Desktop.
Save bonar/89710 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<project default="compile">
<path id="run.cp">
<fileset dir="lib" includes="*.jar"/>
</path>
<target name="mkdir">
<mkdir dir="classes"/>
</target>
<target name="clean">
<delete dir="classes"/>
</target>
<target name="compile" depends="mkdir">
<javac srcdir="src" classpathref="run.cp" destdir="classes"/>
</target>
<target name="run" depends="compile">
<java classname="StartFilter" classpath="${dest}" fork="yes"/>
</target>
<!-- test -->
<taskdef resource="testngtasks" classpath="lib/testng-5.8-jdk15.jar" />
<target name="test" depends="compile">
<testng classpathref="run.cp" haltOnfailure="true">
<classpath><pathelement location="classes" /></classpath>
<xmlfileset dir="." includes="testng.xml" />
</testng>
</target>
<!-- /test -->
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment