diff 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
line wrap: on
line diff
--- a/build.xml	Fri Oct 09 17:44:13 2009 +0400
+++ b/build.xml	Fri Oct 09 17:51:26 2009 +0400
@@ -30,51 +30,7 @@
     <property name="plugin.version" value="${build.number}"/>
   </target>
 
-  <!--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-->
+  <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"/>