Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <fileset id="lib" dir="lib">
  2.                 <include name="*.jar" />
  3.         </fileset>
  4.        
  5.         <fileset id="build" dir="${build.dir}" />
  6.                
  7.         <path id="build.classpath">
  8.                 <fileset refid="lib" />
  9.                 <fileset refid="build" />
  10.         </path>
  11.        
  12.         <target name="init">
  13.                 <mkdir dir="${report.dir}" />
  14.                 <mkdir dir="${build.dir}" />
  15.         </target>
  16.        
  17.         <target name="compile" depends="init" description="Compile source">
  18.                 <javac classpathref="build.classpath" destdir="${build.dir}" nowarn="on">
  19.                         <src path="${src.dir}" />
  20.                 </javac>
  21.         </target>
  22.        
  23.         <target name="run-tests" depends="compile">
  24.                 <testng classpathref="build.classpath"
  25.                         outputDir="${report.dir}"
  26.                         haltOnFailure="true" verbose="2">
  27.                     <xmlfileset dir="." includes="testng.xml" />
  28.                 </testng>
  29.         </target>