view build.xml @ 71:4c15e7de1f9d

do not show password in test connection popup
author Pavel.Sher
date Thu, 23 Jul 2009 17:08:43 +0400
parents 1e5702d96c0f
children cfbeaf010bd4
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.jar" basedir="${mercurial-server.output.dir}"/>
    <jar destfile="${distPath}/unpacked/mercurial-agent.jar" basedir="${mercurial-agent.output.dir}"/>

    <mkdir dir="${distPath}/4.x"/>
    <mkdir dir="${distPath}/3.1/server"/>
    <mkdir dir="${distPath}/3.1/agent"/>

    <zip destfile="${distPath}/3.1/agent/mercurial-agent.zip">
      <zipfileset dir="${distPath}/unpacked" prefix="mercurial/lib">
        <include name="mercurial-agent.jar"/>
        <include name="mercurial-common.jar"/>
      </zipfileset>
    </zip>

    <copy todir="${distPath}/3.1/server">
      <fileset dir="${distPath}/unpacked">
          <include name="mercurial-common.jar"/>
          <include name="mercurial.jar"/>
      </fileset>
    </copy>

    <zip basedir="${distPath}/unpacked" destfile="${distPath}/4.x/mercurial.zip" excludes="**/*">
      <zipfileset prefix="server" dir="${distPath}/unpacked">
          <include name="mercurial-common.jar"/>
          <include name="mercurial.jar"/>
      </zipfileset>
      <zipfileset prefix="agent" dir="${distPath}/3.1/agent">
          <include name="mercurial-agent.zip"/>
      </zipfileset>
    </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>

    <delete dir="${distPath}/unpacked"/>
  </target>

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

  <path id="tests_classpath">
    <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/>
    <pathelement location="${agent.home.dir}/lib/buildServerRuntimeUtil.jar"/>
    <path refid="mercurial-tests.runtime.module.classpath"/>
  </path>

  <target name="run-tests" depends="clean, init, compile.module.mercurial-tests.production">
    <property name="suspend" value="n"/>

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

      <jvmarg value="-ea"/>
      <!--<jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5555"/>-->

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

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