Remove old and and maven build files.
diff --git a/ant/build-ant.xml b/ant/build-ant.xml
new file mode 100644
index 0000000..4502117
--- /dev/null
+++ b/ant/build-ant.xml
@@ -0,0 +1,74 @@
+<project name="testng" default="all" basedir=".">
+
+  <property file="build.properties"/>
+  <property name="this.directory" value="${test.dir}" />
+  <property name="test-output" value="${this.directory}/test-output" />
+
+  <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${testng.jar}" />
+
+  <target name="all">
+    <echo>This dir: ${this.directory}</echo>
+    <delete failonerror="false" dir="${this.directory}/build" />
+  	<mkdir dir="${this.directory}/build" />
+  	
+  	<javac classpath="${testng.jar}"
+  		  destdir="${this.directory}/build" srcdir="${this.directory}" includes="test/ant/*.java" />
+
+<!--
+    <testng classpath="build;../../testng-5.2beta-jdk15.jar"
+            outputdir="test-output"
+    	      dumpcommand="true">
+        <xmlfileset dir="." includes="testng.xml"/>
+    </testng>
+-->
+	<delete failonerror="false">
+	<fileset dir="${test-output}" includes="**"/></delete>
+  	
+    <testng classpath="${this.directory}/build;${testng.jar}"
+            outputdir="${test-output}"
+  	    parallel="methods"
+  	    threadcount="5"
+    	listeners = "org.testng.reporters.FailedReporter, org.testng.reporters.DotTestListener"
+    	haltonfailure="true"
+    	>
+        <classfileset dir="${this.directory}/build">
+        	<include name="test/ant/NoPackageTest.class" />
+        	<include name="test/ant/MultipleThreadTest.class" />
+        </classfileset>
+    </testng>
+  	
+  	<available file="${test-output}/Ant suite/Ant test.xml" 
+  		type="file" property="test.exists"/>
+  	<fail unless="test.exists" 
+  		message="The appropriately named output should have been created"/>
+  	
+    <testng classpath="${this.directory}/build;${testng.jar}"
+            outputdir="${test-output}"
+	   	listeners = "org.testng.reporters.FailedReporter, org.testng.reporters.DotTestListener"
+    	haltonfailure="true"
+    	suitename="Test Ant Suite"
+    	testname="Test Ant Test"
+    	>
+        <classfileset dir="${this.directory}/build">
+        	<include name="test/ant/DontOverrideSuiteNameTest.class" />
+         </classfileset>
+    </testng>
+  	
+  	<available file="${test-output}/Test Ant Suite/Test Ant Test.xml" 
+  		type="file" property="test2.exists"/>
+  	<fail unless="test2.exists" message="The appropriately named output should have been created"/>
+  	
+  	<!-- Ensure standard tests get run -->
+    <testng classpath="${this.directory}/build;${testng.jar}"
+            outputdir="${test-output}"
+    	listeners = "org.testng.reporters.FailedReporter, org.testng.reporters.DotTestListener"
+    	haltonfailure="true"
+    	>
+        <xmlfileset file="${test.resources.dir}/testng-ant.xml"/>
+    </testng>
+  	<available file="${test-output}/Suitename from xml/TestName.xml" 
+  		type="file" property="test3.exists"/>
+  	<fail unless="test3.exists" message="The appropriately named output should have been created"/>
+
+  </target>
+</project>
diff --git a/ant/build-tests.xml b/ant/build-tests.xml
new file mode 100644
index 0000000..4f51c47
--- /dev/null
+++ b/ant/build-tests.xml
@@ -0,0 +1,187 @@
+<project name="testng" default="all" basedir=".">
+
+  <property file="build.properties"/>
+
+  <property name="report.dir" value="${test.output.dir}"/>
+  <property name="junit.report.dir" value="${report.dir}/test-tmp"/>
+  <property name="testng.report.dir" value="${report.dir}"/>
+
+  <target name="all" depends="prepare,compile,run,reports,done"/>
+
+  <!-- ==================================================================== -->
+  <!-- Compile                                                              -->
+  <!-- ==================================================================== -->
+  <path id="compile.cp">
+    <pathelement location="${testng.jar}" />
+    <fileset dir="${lib.dir}" includes="${guice2.jar}" />
+    <fileset dir="${lib.dir}" includes="${junit.jar}" />
+    <fileset dir="${lib.dir}" includes="aopalliance-1.0.jar" />
+  </path>
+
+  <target name="env:info">
+    <echo>
+BASEDIR          =${basedir}
+TEST.DIR         =${test.dir}
+TEST.BUILD.DIR   =${test.build.dir}
+REPORT.DIR       =${report.dir}
+JUNIT.REPORT.DIR =${junit.report.dir}
+TESTNG.REPORT.DIR=${testng.report.dir}
+    </echo>
+  </target>
+
+  <target name="compile" depends="prepare">
+    <echo message="                                 -- Compiling tests --"/>
+
+    <property name="build.compiler" value="modern"/>
+    <javac debug="true"
+           source="1.7"
+           classpathref="compile.cp"
+           srcdir="${test.dir}"
+           destdir="${test.build.dir}"
+    />
+
+  </target>
+
+  <target name="prepare">
+    <tstamp/>
+    <mkdir dir="${test.build.dir}"/>
+    <mkdir dir="${junit.report.dir}"/>
+    <mkdir dir="${testng.report.dir}"/>
+
+  <taskdef name="testng"
+             classname="org.testng.TestNGAntTask"
+             classpath="${build.dir}"/>
+  </target>
+
+<!--
+  <property name="cobertura.dir" value="../cobertura-1.9.4.1" />
+
+  <path id="cobertura.classpath">
+      <fileset dir="${cobertura.dir}">
+          <include name="cobertura.jar" />
+          <include name="lib/**/*.jar" />
+      </fileset>
+  </path>
+-->
+
+  <!-- ==================================================================== -->
+  <!-- Run                                                             -->
+  <!-- ==================================================================== -->
+
+  <path id="run.cp">
+<!--
+  	<path location="target/instrumented-classes" />
+  	<path refid="cobertura.classpath" />
+-->
+    <path refid="compile.cp"/>
+    <pathelement location="${test.build.dir}"/>
+  </path>
+
+  <target name="run" description="Run tests" depends="compile,copy-resources">
+    <echo message="                                 -- Running tests --"/>
+    <echo message="                                 -- ${testng.jar} --" />
+    <testng classpathref="run.cp"
+            outputdir="${testng.report.dir}">
+      <xmlfileset dir="${test.resources.dir}" includes="testng.xml"/>
+      <jvmarg value="-Dtest.resources.dir=${test.resources.dir}" />
+      <jvmarg value="-Dsun.io.serialization.extendedDebugInfo=true" />
+    </testng>
+  </target>
+
+  <target name="copy-resources" description="Copies resources.">
+    <copy verbose="false"
+          file="${src.resources.dir}/testngtasks"
+          todir="${build.dir}" />
+    <copy todir="${build.dir}">
+      <fileset dir="${src.resources.dir}">
+        <exclude name="**/.*" />
+        <exclude name="**/CVS/*" />
+      </fileset>
+    </copy>
+  </target>
+
+  <target name="run:single" description="Run 1 property file named with the ant property test" depends="compile">
+      <echo message="                                 -- testng-tests-run1 --"/>
+
+    <testng outputdir="${testng.report.dir}"
+        classpathref="run.cp"
+        useDefaultListeners="true"
+        outputDir="${testng.report.dir}">
+      <xmlfileset dir="${test.resources.dir}" includes="testng-single.xml"/>
+     </testng>
+
+      <echo>Report created in    open ${testng.report.dir}/index.html</echo>
+  </target>
+
+  <target name="run:antprop" description="Run a test to see if ant system propertes are passed correctly" depends="compile">
+      <echo message="                                 -- testng-tests-run-antprop --"/>
+      <property name="syspropset1" value="value 1"/>
+      <property name="syspropset2" value="value 2"/>
+      <propertyset id="propset1">
+          <propertyref name="syspropset1"/>
+          <propertyref name="syspropset2"/>
+      </propertyset>
+
+      <testng outputdir="${testng.report.dir}"
+              classpathref="run.cp">
+          <xmlfileset dir="${test.resources.dir}" includes="testng-single3.xml"/>
+          <propertyset refid="propset1"/>
+          <sysproperty key="sysprop1" value="value 3"/>
+      </testng>
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- Run specific configuration                                           -->
+  <!-- ==================================================================== -->
+  <target name="run:conf"
+          if="testng.conf"
+          depends="clean:reports,compile"
+          description="Run specified tests">
+    <echo message="                                 -- testng-tests-run --"/>
+    <echo message="using: ${testng.conf}.xml"/>
+
+    <testng classpathref="run.cp"
+            outputDir="${testng.report.dir}">
+        <xmlfileset dir="${test.resources.dir}" includes="${testng.conf}.xml"/>
+    </testng>
+
+    <antcall target="clean.tmp"/>
+  </target>
+
+
+  <!-- ==================================================================== -->
+  <!-- Reports                                                              -->
+  <!-- ==================================================================== -->
+
+  <target name="reports">
+    <junitreport todir="${junit.report.dir}">
+      <fileset dir="${testng.report.dir}">
+        <include name="*.xml"/>
+        <exclude name="testng-failed.xml"/>
+        <exclude name="testng-results.xml" />
+      </fileset>
+      <report format="noframes" todir="${junit.report.dir}"/>
+    </junitreport>
+  </target>
+
+
+  <target name="clean.tmp">
+      <delete dir="${test.output.dir}"/>
+  </target>
+
+  <target name="clean:reports">
+      <delete dir="${report.dir}"/>
+      <delete dir="${junit.report.dir}"/>
+  </target>
+
+  <target name="clean" depends="clean.tmp,clean:reports">
+    <echo message="                                 -- test clean --"/>
+
+    <delete dir="${test.build.dir}"/>
+  </target>
+
+  <target name="done">
+    <echo>Reports can be found in:    open ${testng.report.dir}/index.html</echo>
+  </target>
+
+</project>
diff --git a/ant/build.xml b/ant/build.xml
new file mode 100644
index 0000000..a1e4bba
--- /dev/null
+++ b/ant/build.xml
@@ -0,0 +1,467 @@
+<project name="testng" default="dev" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
+  
+  <!-- ====================================================================== -->
+  <!-- TestNG build file                                                      -->
+  <!-- Created cbeust, April 26th, 2004                                       -->
+  <!-- ====================================================================== -->
+
+  <property file="build.properties" />
+  <property name="optimize" value="false" />
+
+  <!-- ====================================================================== -->
+  <!-- PREPARE                                                                -->
+  <!-- ====================================================================== -->
+  <target name="prepare" depends="retrieve-dependencies"
+          description="Performs all preparations required to build.">
+    <tstamp />
+    <mkdir dir="${build.dir}" />
+    <mkdir dir="${other.jars.dir}" />
+  </target>
+
+  <!-- ====================================================================== -->
+  <!-- DUMP                                                                   -->
+  <!-- ====================================================================== -->
+  <target name="dump" description="Dumps all properties." depends="prepare">
+    <echoproperties />
+  </target>
+
+	<!-- ====================================================================== -->
+  <!-- VALIDATE                                                               -->
+  <!-- ====================================================================== -->
+
+  <target name="validate" description="Validates the build environment.">
+    <!-- java greater than 1.6 required to build -->
+    <condition property="requiredJavaVersion">
+      <or>
+        <equals arg1="${ant.java.version}" arg2="1.9" />
+        <equals arg1="${ant.java.version}" arg2="1.8" />
+        <equals arg1="${ant.java.version}" arg2="1.7" />
+      </or>
+    </condition>
+    <fail unless="requiredJavaVersion"
+          message="Java version 1.7 required." />
+    <!-- validate ant version too ... -->
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- COPY-RESOURCES                                                       -->
+  <!-- ==================================================================== -->
+
+  <target name="copy-resources" description="Copies resources.">
+    <copy verbose="false"
+          file="${src.resources.dir}/testngtasks"
+          todir="${build.dir}" />
+    <copy todir="${build.dir}">
+      <fileset dir="${src.resources.dir}">
+        <exclude name="**/.*" />
+        <exclude name="**/CVS/*" />
+      </fileset>
+    </copy>
+  </target>
+
+
+  <target name="dev"
+          depends="prepare,validate,copy-resources,build,tests" />
+
+  <target name="all"
+          depends="prepare,validate,copy-resources,build,dist,tests,test-ant,javadocs,dist" />
+
+  <target name="build" depends="prepare,compile,testng-jar-all" />
+
+  <target name="testng-jar-all">
+    <antcall target="create-jar">
+      <param name="jar.file" value="${testng.jar}" />
+    </antcall>
+    <jar jarfile="${testng.jar}" update="true">
+      <zipfileset src="${lib.dir}/${beanshell.jar}" />
+      <zipfileset src="${lib.dir}/${jcommander.jar}" />
+      <zipfileset src="${lib.dir}/${yaml.jar}" />
+    </jar>
+
+  </target>
+
+  <target name="single">
+    <ant antfile="build-tests.xml" target="run:single"/>
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- Compile                                                              -->
+  <!-- ==================================================================== -->
+
+  <path id="compile2.cp">
+    <fileset dir="${lib.dir}" includes="${all.jar.files}" />
+  </path>
+
+  <target name="compile"
+          depends="prepare,copy-resources"
+          description="Compiles sources">
+    <echo message="                                 -- Compiling sources --" />
+
+    <echo>Src:${src.dir}</echo>
+    <javac classpathref="compile2.cp"
+           verbose="false"
+           target="1.7"
+           debug="true"
+           optimize="${optimize}"
+           destdir="${build.dir}">
+      <src path="${src.dir}" />
+    </javac>
+  </target>
+
+  <target name="compile:all" depends="compile" />
+
+  <target name="examples">
+    <ant inheritall="no" antfile="examples/build.xml" />
+  </target>
+
+  <target name="tests" depends="build" description="runs all JDK5 tests with JDK5 distro">
+    <ant inheritall="no" antfile="build-tests.xml" />
+  </target>
+  
+  <target name="test-ant" depends="build">
+    <echo message="                                 -- Testing ant testng task functionality --" />
+    <ant inheritall="no" antfile="build-ant.xml" />
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- Documentation                                                        -->
+  <!-- ==================================================================== -->
+
+  <target name="javadocs" depends="build,javadocs-current" />
+
+  <target name="doclava">
+    <javadoc
+      docletpath="3rdparty/doclava-1.0.3.jar"
+      bootclasspath="${javahome}/jre/lib/rt.jar"
+      classpath="${testng.jar}:lib/${ant.jar}:lib/${guice2.jar}:lib/aopalliance-1.0.jar"
+      maxmemory="2048M"
+      additionalparam="-quiet"
+      verbose="false"
+      destdir="javadocs"
+      >
+      <fileset dir="${src.dir}" defaultexcludes="yes">
+        <include name="org/testng/*.java" />
+      </fileset>
+      <fileset dir="${src.dir}" defaultexcludes="yes">
+        <include name="org/testng/xml/Xml*.java" />
+      </fileset>
+      <fileset dir="${src.dir}" defaultexcludes="yes">
+        <include name="org/testng/annotations/**" />
+      </fileset>
+      <doclet name="com.google.doclava.Doclava">
+        <param name="-stubs" value="build/stubs" />
+        <param name="-hdf"/>
+        <param name="project.name" value="TestNG" />
+        <!-- versioning -->
+        <param name="-since"/>
+        <param name="doclava/previous.xml"/>
+        <param name="v1" />
+        <param name="-apiversion" value="v2"/>
+        <!-- federation -->
+        <param name="-federate" />
+        <param name="JDK"/>
+        <param name="http://download.oracle.com/javase/6/docs/api/index.html?"/>
+        <param name="-federationxml"/><param name="JDK"/>
+        <param name="http://doclava.googlecode.com/svn/static/api/openjdk-6.xml"/>
+      </doclet>
+    </javadoc>
+  </target>
+
+  <target name="javadocs-current">
+    <javadoc additionalparam="-quiet" destdir="javadocs" source="1.7" windowtitle="TestNG"
+      classpath="${testng.jar}" classpathref="compile2.cp" verbose="false">
+      <fileset dir="${src.dir}" defaultexcludes="yes">
+        <include name="org/testng/*.java" />
+      </fileset>
+      <fileset dir="${src.dir}" defaultexcludes="yes">
+        <include name="org/testng/xml/Xml*.java" />
+      </fileset>
+      <fileset dir="${src.dir}" defaultexcludes="yes">
+        <include name="org/testng/annotations/**" />
+      </fileset>
+    </javadoc>
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- Distribution                                                         -->
+  <!-- ==================================================================== -->
+
+  <target name="dist" depends="build,all-jar-flavors,dist-all-zip,eclipse" />
+
+  <target name="all-jar-flavors" depends="dist-junit,dist-nobsh-guice,dist-bsh-noguice,dist-nobsh-noguice,dist-testng-dist,dist-testng-javadoc" />
+
+  <target name="dist-junit">
+    <antcall target="create-jar">
+      <param name="jar.file" value="${other.jars.dir}/${testng.junit.jar}" />
+    </antcall>
+    <jar jarfile="${other.jars.dir}/${testng.junit.jar}" update="true">
+      <zipfileset src="${lib.dir}/${beanshell.jar}" />
+      <zipfileset src="${lib.dir}/${jcommander.jar}" />
+      <zipfileset src="${lib.dir}/${junit.jar}" />
+      <zipfileset src="${lib.dir}/${yaml.jar}" />
+    </jar>
+  </target>
+
+  <target name="dist-nobsh-guice">
+    <antcall target="create-jar">
+      <param name="jar.file" value="${other.jars.dir}/${testng.nobsh.guice.jar}" />
+    </antcall>
+    <jar jarfile="${other.jars.dir}/${testng.nobsh.guice.jar}" update="true">
+      <zipfileset src="${lib.dir}/${guice2.jar}" />
+      <zipfileset src="${lib.dir}/${jcommander.jar}" />
+      <zipfileset src="${lib.dir}/${junit.jar}" />
+    </jar>
+  </target>
+
+  <target name="dist-bsh-noguice">
+    <antcall target="create-jar">
+      <param name="jar.file" value="${other.jars.dir}/${testng.bsh.noguice.jar}" />
+    </antcall>
+    <jar jarfile="${other.jars.dir}/${testng.bsh.noguice.jar}" update="true">
+      <zipfileset src="${lib.dir}/${beanshell.jar}" />
+      <zipfileset src="${lib.dir}/${jcommander.jar}" />
+      <zipfileset src="${lib.dir}/${junit.jar}" />
+    </jar>
+  </target>
+
+  <target name="dist-nobsh-noguice">
+    <antcall target="create-jar">
+      <param name="jar.file" value="${other.jars.dir}/${testng.nobsh.noguice.jar}" />
+    </antcall>
+    <jar jarfile="${other.jars.dir}/${testng.bsh.noguice.jar}" update="true">
+      <zipfileset src="${lib.dir}/${jcommander.jar}" />
+      <zipfileset src="${lib.dir}/${junit.jar}" />
+    </jar>
+  </target>
+
+  <target name="dist-testng-dist">
+    <antcall target="create-jar">
+      <param name="jar.file" value="${other.jars.dir}/${testng.dist.jar}" />
+    </antcall>
+    <jar jarfile="${other.jars.dir}/${testng.dist.jar}" update="true">
+      <zipfileset src="${lib.dir}/${jcommander.jar}" />
+    </jar>
+  </target>
+
+  <target name="dist-testng-javadoc" depends="javadocs">
+    <zip destfile="${other.jars.dir}/${testng.javadoc.zip}">
+        <fileset dir="javadocs"/>
+    </zip>
+  </target>
+
+  <target name="create-jar" description="Create a jar file with the Testng classes and nothing else" 
+          depends="compile">
+    <delete file="${jar.file}" />
+    <jar destfile="${jar.file}" >
+      <manifest>
+        <attribute name="Main-Class" value="org.testng.TestNG" />
+        <attribute name="Implementation-Version" value="${testng.version}-${DSTAMP}${TSTAMP}" />
+      </manifest>
+      <fileset dir="${build.dir}" />
+      <fileset file="TESTNG-${testng.version}" />
+    </jar>
+  </target>
+
+  <target name="dist-all-zip" depends="dist-prepare,javadocs">
+    <property name="zip.dir" value="testng-${testng.version}" />
+    <echo>Adding ${testng.fullname}</echo>
+    <zip zipfile="${testng.zip}">
+      <zipfileset prefix="${zip.dir}" dir="${target}">
+        <include name="${testng.fullname}.jar" />
+      </zipfileset>
+      <zipfileset prefix="${zip.dir}" dir="${basedir}" includesfile="FILES" />
+      <zipfileset dir="${other.jars.dir}" prefix="${zip.dir}/other-jars"/>
+      <zipfileset dir="javadocs" prefix="${zip.dir}/javadocs" />
+      <zipfileset dir="src" prefix="${zip.dir}/src" />
+      <zipfileset dir="spring" prefix="${zip.dir}/spring" />
+      <zipfileset dir="doc" prefix="${zip.dir}/doc" />
+      <zipfileset dir="${src.resources.dir}"
+               prefix="${zip.dir}/resources" 
+            includes="**/*.css"/>
+    </zip>
+  </target>
+  
+<!--
+  <target name="dist-maven-bundle" depends="dist-all-zip">
+    <mkdir dir="${build.maven-bundle.dir}" />
+    <copy file="bundle-pom.xml" tofile="${build.maven-bundle.dir}/pom.xml" overwrite="true">
+      <filterchain>
+        <expandproperties/>
+      </filterchain>
+    </copy>
+    <jar destfile="${build.maven-bundle.dir}/${sources.testng.jar}">
+      <fileset dir="${src.dir}" />
+    </jar>
+
+    <exec executable="gpg">
+      <arg value="- -yes" />
+      <arg value="-ab" />
+      <arg value="${testng.jar}" />
+    </exec>
+
+    <exec executable="gpg">
+      <arg value="- -yes" />
+      <arg value="-ab" />
+      <arg value="${build.maven-bundle.dir}/pom.xml" />
+    </exec>
+
+    <exec executable="gpg">
+      <arg value="- -yes" />
+      <arg value="-ab" />
+      <arg value="${build.maven-bundle.dir}/${sources.testng.jar}" />
+    </exec>
+
+    <jar destfile="${testng.maven-bundle}">
+      <fileset file="${build.maven-bundle.dir}/pom.xml" />
+      <fileset file="${build.maven-bundle.dir}/${sources.testng.jar}" />
+      <fileset file="${build.maven-bundle.dir}/*asc" />
+      <fileset file="${testng.jar}" />
+      <fileset file="${testng.jar}.asc" />
+    </jar>
+  </target>
+-->
+
+  <target name="dist-prepare" depends="update-readme">
+    <delete file="{other.jars.dir}/${testng.nobsh.jar}" />
+    <mkdir dir="${other.jars.dir}" />
+  </target>
+
+  <target name="update-readme">
+    <copy file="README.template" tofile="README.md" />
+    <replace file="README.md" token="${version}" value="${testng.version}" />
+    <touch file="TESTNG-${testng.version}" />
+  </target>
+      
+  <target name="eclipse" description="Used by Cedric to build distributions">
+    <property name="jdk15.jar"
+              value="${testng-eclipse.dir}/lib/testng.jar" />
+
+    <delete file="${jdk15.jar}" />
+    <copy file="${testng.jar}" tofile="${jdk15.jar}" />
+
+    <!-- sources -->
+    <property name="sources" value="${testng-eclipse.dir}/lib/testng-sources.jar"/>
+    <echo>Sources: ${sources}</echo>
+    <jar destfile="${sources}" basedir="src/main/java/" />
+  </target>
+
+  <target name="ftp">
+    <!--
+          <ftp action="put"
+             server="beust.com"
+             remotedir="w/testng/test-output"
+             userid="${userid}"
+             password="${password}">
+              <fileset dir="c:\weblogic\dev\sandbox\cbeust\testng\test\test-output">
+                <include name="index.html" />
+                <include name="main.html" />
+                <include name="toc.html" />
+                <include name="*egression*" />
+             </fileset>
+        </ftp>
+      -->
+    <ftp action="put"
+         server="beust.com"
+         remotedir="w/testng"
+         userid="${userid}"
+         password="${password}">
+      <fileset dir="${root.dir}">
+        <include name="${testng.zip}" />
+        <include name="javadocs/**" />
+        <include name="testng-1.0.dtd" />
+      </fileset>
+      <fileset dir="${root.dir}/doc">
+        <include name="*.html" />
+      </fileset>
+    </ftp>
+
+  </target>
+
+  <target name="ftp2">
+    <ftp action="put"
+         server="beust.com"
+         remotedir="w/testng"
+         userid="${userid}"
+         password="${password}">
+      <fileset dir="${root.dir}/test">
+        <include name="test-output/*" />
+      </fileset>
+      <fileset dir="${root.dir}/test">
+        <include name="test-report/*" />
+      </fileset>
+    </ftp>
+  </target>
+
+  <target name="clean">
+    <delete dir="${build.dir}" />
+    <delete dir="${target}" />
+    <delete dir="${build.maven-bundle.dir}" />
+    <delete failonerror="false">
+      <fileset dir="." includes="testng*.jar,*.zip" />
+    </delete>
+    <delete dir="test-output" failonerror="false" />
+    <delete dir="test-output-tests" failonerror="false" />
+    <ant antfile="build-tests.xml" target="clean" />
+    <ant dir="examples" target="clean" />
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- Maven1/2 Distribution                                                -->
+  <!-- ==================================================================== -->
+
+<!--
+  <target name="maven-plugin">
+    <jar destfile="maven-testng-plugin-${testng-maven.version}.jar"
+         basedir="./maven/" />
+  </target>
+-->
+
+  <!-- ==================================================================== -->
+  <!-- Ivy                                                                  -->
+  <!-- ==================================================================== -->
+
+  <target name="retrieve-dependencies" description="Retrieve dependencies with ivy">
+    <ivy:retrieve log="quiet" />
+  </target>
+
+  <target name="publish">
+    <ivy:resolve />
+    <mkdir dir="dist/jars" />
+    <copy file="${testng.jar}" todir="dist/jars" />
+    <ivy:publish organisation="org.testng" resolver="local" overwrite="true"/>
+  </target>
+
+  <target name="pom">
+    <ivy:makepom ivyfile="ivy.xml" pomfile="ivy-pom.xml" />
+  </target>
+
+  <!-- ==================================================================== -->
+  <!-- Code coverage                                                        -->
+  <!-- ==================================================================== -->
+
+<!--
+  <property name="cobertura.dir" value="../cobertura-1.9.4.1" />
+
+  <path id="cobertura.classpath">
+      <fileset dir="${cobertura.dir}">
+          <include name="cobertura.jar" />
+          <include name="lib/**/*.jar" />
+      </fileset>
+  </path>
+
+  <taskdef classpathref="cobertura.classpath" resource="tasks.properties" />
+
+  <target name="coverage:create">
+    <cobertura-instrument classpath="cobertura-1.9.4.1/lib/*" todir="target/instrumented-classes">
+      <fileset dir="${build.dir}">
+        <include name="**/*.class" />
+      </fileset>
+    </cobertura-instrument>
+  </target>
+
+  <target name="coverage">
+    <cobertura-report srcdir="${src.dir}" destdir="target/coverage-report"/>
+  </target>
+-->
+
+</project>