view build.xml @ 22:0d6f27953b30

synchronization fixes
author Pavel.Sher
date Thu, 17 Jul 2008 00:58:04 +0400
parents b5b31085de22
children afcb3eee8fc6
line wrap: on
line source

<project name="Mercurial VCS Support" default="dist" basedir=".">
  <property file="mercurial.properties"/>
  <import file="mercurial.xml"/>

  <property name="distPath" value="${basedir}/dist"/>

  <target name="dist" depends="clean, init, compile.module.mercurial.production">
    <mkdir dir="${distPath}/unpacked"/>
    <jar destfile="${distPath}/unpacked/mercurial.jar" basedir="${mercurial.output.dir}"/>
    <zip basedir="${distPath}/unpacked" destfile="${distPath}/mercurial.zip" includes="**/*"/>
  </target>

  <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>

  <target name="run-tests" depends="clean, init, compile.module.mercurial-tests.production">

    <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter"
            outputdir="${basedir}/test-output" classpathref="mercurial-tests.runtime.module.classpath" dumpcommand="true">

      <jvmarg value="-ea"/>

      <sysproperty key="java.awt.headless" value="true"/>

      <xmlfileset dir="${basedir}/mercurial-tests/src">
        <include name="testng.xml"/>
      </xmlfileset>
    </testng>
  </target>
</project>