Mercurial > hg > mercurial
view build.xml @ 116:1c7e94c0ad2f
Add ability to use mercurial installed on the system.
We bundle hg.exe for tests, but it doesn't work on linux. Add ability to set hg executable to use in our tests in the same way as it done in git-plugin
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Mon, 23 Aug 2010 16:18:54 +0400 |
parents | 60d67a1e5502 |
children | ea7972ed3ab7 |
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"/> <property name="plugin.name" value="mercurial"/> <import file="teamcity-common.xml"/> <target name="package" depends="define.version"> <package.teamcity.plugin name="${plugin.name}" server.output="${mercurial-server.output.dir}" agent.output="${mercurial-agent.output.dir}" common.output="${mercurial-common.output.dir}" plugin.descriptor.file="${basedir}/teamcity-plugin.xml" plugin.version="${plugin.version}"/> </target> <target name="define.version" depends="define.version.if.under.teamcity"> <tstamp> <format property="current.time" pattern="yyyyMMddHHmm"/> </tstamp> <property name="plugin.version" value="SNAPSHOT-${current.time}"/> </target> <target name="define.version.if.under.teamcity" if="build.number"> <property name="plugin.version" value="${build.number}"/> </target> <target name="dist" depends="check.teamcitydistribution,all,package"/> <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"> <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" workingDir="${basedir}"> <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>