view build.xml @ 34:0052d368c90c

initial working version of agent side checkout + some tests
author Pavel.Sher
date Thu, 31 Jul 2008 00:36:47 +0400
parents a7cab5083ada
children aac232b60c89
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="all">
    <delete dir="${distPath}"/>
    <mkdir dir="${distPath}/unpacked"/>
    <jar destfile="${distPath}/unpacked/mercurial-common.jar" basedir="${mercurial-common.output.dir}"/>
    <jar destfile="${distPath}/unpacked/mercurial-server.jar" basedir="${mercurial-server.output.dir}"/>
    <jar destfile="${distPath}/unpacked/mercurial-agent.jar" basedir="${mercurial-agent.output.dir}"/>
    <zip basedir="${distPath}/unpacked" destfile="${distPath}/mercurial-server.zip">
      <include name="mercurial-common.jar"/>
      <include name="mercurial-server.jar"/>
    </zip>
    <zip basedir="${distPath}/unpacked" destfile="${distPath}/mercurial-agent.zip">
      <include name="mercurial-common.jar"/>
      <include name="mercurial-agent.jar"/>
    </zip>
    <zip basedir="${basedir}" destfile="${distPath}/mercurial-src.zip">
      <exclude name=".hg/**"/>
      <exclude name="dist/**"/>
      <exclude name="**/classes/**"/>
      <exclude name="*.iws"/>
      <exclude name="test-output/**"/>
    </zip>
  </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>