comparison build.xml @ 78:1dcede89a079

preparing to bundle with TeamCity
author Pavel.Sher
date Fri, 09 Oct 2009 17:51:26 +0400
parents cfbeaf010bd4
children 3418c64c2c0a
comparison
equal deleted inserted replaced
77:cfbeaf010bd4 78:1dcede89a079
28 28
29 <target name="define.version.if.under.teamcity" if="build.number"> 29 <target name="define.version.if.under.teamcity" if="build.number">
30 <property name="plugin.version" value="${build.number}"/> 30 <property name="plugin.version" value="${build.number}"/>
31 </target> 31 </target>
32 32
33 <!--target name="dist" depends="all"> 33 <target name="dist" depends="check.teamcitydistribution,all,package"/>
34 <delete dir="${distPath}"/>
35 <mkdir dir="${distPath}/unpacked"/>
36 <jar destfile="${distPath}/unpacked/mercurial-common.jar" basedir="${mercurial-common.output.dir}"/>
37 <jar destfile="${distPath}/unpacked/mercurial.jar" basedir="${mercurial-server.output.dir}"/>
38 <jar destfile="${distPath}/unpacked/mercurial-agent.jar" basedir="${mercurial-agent.output.dir}"/>
39
40 <mkdir dir="${distPath}/4.x"/>
41 <mkdir dir="${distPath}/3.1/server"/>
42 <mkdir dir="${distPath}/3.1/agent"/>
43
44 <zip destfile="${distPath}/3.1/agent/mercurial-agent.zip">
45 <zipfileset dir="${distPath}/unpacked" prefix="mercurial/lib">
46 <include name="mercurial-agent.jar"/>
47 <include name="mercurial-common.jar"/>
48 </zipfileset>
49 </zip>
50
51 <copy todir="${distPath}/3.1/server">
52 <fileset dir="${distPath}/unpacked">
53 <include name="mercurial-common.jar"/>
54 <include name="mercurial.jar"/>
55 </fileset>
56 </copy>
57
58 <zip basedir="${distPath}/unpacked" destfile="${distPath}/4.x/mercurial.zip" excludes="**/*">
59 <zipfileset prefix="server" dir="${distPath}/unpacked">
60 <include name="mercurial-common.jar"/>
61 <include name="mercurial.jar"/>
62 </zipfileset>
63 <zipfileset prefix="agent" dir="${distPath}/3.1/agent">
64 <include name="mercurial-agent.zip"/>
65 </zipfileset>
66 </zip>
67
68 <zip basedir="${basedir}" destfile="${distPath}/mercurial-src.zip">
69 <exclude name=".hg/**"/>
70 <exclude name="dist/**"/>
71 <exclude name="**/classes/**"/>
72 <exclude name="*.iws"/>
73 <exclude name="test-output/**"/>
74 </zip>
75
76 <delete dir="${distPath}/unpacked"/>
77 </target-->
78 34
79 <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/> 35 <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>
80 36
81 <path id="tests_classpath"> 37 <path id="tests_classpath">
82 <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/> 38 <pathelement location="${agent.home.dir}/lib/runtime-util.jar"/>