You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by ka...@apache.org on 2008/09/21 19:02:25 UTC

svn commit: r697550 - in /lucene/mahout/branches/branch-0.1: build.xml pom.xml

Author: kalle
Date: Sun Sep 21 10:02:25 2008
New Revision: 697550

URL: http://svn.apache.org/viewvc?rev=697550&view=rev
Log:
distribution packaging,
deploys maven files to dist/maven
arms tgz/zip-balls with gpg
creates md5 sums
et c

Modified:
    lucene/mahout/branches/branch-0.1/build.xml
    lucene/mahout/branches/branch-0.1/pom.xml

Modified: lucene/mahout/branches/branch-0.1/build.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/branches/branch-0.1/build.xml?rev=697550&r1=697549&r2=697550&view=diff
==============================================================================
--- lucene/mahout/branches/branch-0.1/build.xml (original)
+++ lucene/mahout/branches/branch-0.1/build.xml Sun Sep 21 10:02:25 2008
@@ -52,6 +52,8 @@
         includes="*.jar"/>
     </tar>
 
+    <!-- unpack tarball and create zipball -->
+
     <property name="dest" value="build"/>
     <mkdir dir="${dest}"/>
         
@@ -63,11 +65,23 @@
         prefix="${fullnamever}"/>
     </zip>
 
-    <!-- TODO: arm tgz and zip with gpg and create md5 sums -->
+    <delete dir="${dest}" />
 
-    <!-- TODO: create maven artifacts -->
+    <!-- pgp arm tgz and zip -->
+    <exec command="gpg --armor --output ${dist}/${fullnamever}.tgz.asc --detach-sig ${dist}/${fullnamever}.tgz"/>
+    <exec command="gpg --armor --output ${dist}/${fullnamever}.zip.asc --detach-sig ${dist}/${fullnamever}.zip"/>
+
+    <!-- create md5 sum for tgz and zip -->
+    <exec command="openssl dgst -md5 -out ${dist}/${fullnamever}.tgz.md5 ${dist}/${fullnamever}.tgz"/>
+    <exec command="openssl dgst -md5 -out ${dist}/${fullnamever}.zip.md5 ${dist}/${fullnamever}.zip"/>
+
+    <!-- create maven artifacts -->
+    <exec command="mvn -Dtest=false deploy"/>
+    <mkdir dir="${dist}/maven"/>
+    <copy todir="${dist}/maven">
+      <fileset dir="core/dist/maven"/>
+    </copy>
 
-    <delete dir="${dest}" />
 
   </target>
 

Modified: lucene/mahout/branches/branch-0.1/pom.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/branches/branch-0.1/pom.xml?rev=697550&r1=697549&r2=697550&view=diff
==============================================================================
--- lucene/mahout/branches/branch-0.1/pom.xml (original)
+++ lucene/mahout/branches/branch-0.1/pom.xml Sun Sep 21 10:02:25 2008
@@ -85,5 +85,22 @@
     <url>https://issues.apache.org/jira/browse/MAHOUT</url>
   </issueManagement>
 
+  <distributionManagement>
+    <repository>
+      <uniqueVersion>false</uniqueVersion>
+      <id>dist</id>
+      <name>dist</name>
+      <url>file://${basedir}/dist/maven</url>
+      <layout>default</layout>
+    </repository>
+    <snapshotRepository>
+      <uniqueVersion>true</uniqueVersion>
+      <id>dist</id>
+      <name>dist</name>
+      <url>file://${basedir}/dist/maven</url>
+      <layout>default</layout>
+    </snapshotRepository>
+  </distributionManagement>
+
 </project>