cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1051661 - /cassandra/trunk/build.xml
Date Tue, 21 Dec 2010 21:36:17 GMT
Author: eevans
Date: Tue Dec 21 21:36:16 2010
New Revision: 1051661

URL: http://svn.apache.org/viewvc?rev=1051661&view=rev
Log:
generate artifacts w/o RAT run

Patch by eevans; reviewed by Stu Hood for CASSANDRA-1870

Modified:
    cassandra/trunk/build.xml

Modified: cassandra/trunk/build.xml
URL: http://svn.apache.org/viewvc/cassandra/trunk/build.xml?rev=1051661&r1=1051660&r2=1051661&view=diff
==============================================================================
--- cassandra/trunk/build.xml (original)
+++ cassandra/trunk/build.xml Tue Dec 21 21:36:16 2010
@@ -334,8 +334,9 @@
       </jar>
     </target>
 
-    <!-- creates a release tarball -->
-    <target name="release" depends="jar,javadoc,rat-init" description="Create a full Cassandra
binary distribution including tar.gz">
+    <!-- creates release tarballs -->
+    <target name="artifacts" depends="jar,javadoc"
+            description="Create Cassandra release artifacts">
       <mkdir dir="${dist.dir}"/>
       <copy todir="${dist.dir}/lib">
         <fileset dir="${build.lib}"/>
@@ -385,14 +386,6 @@
           </not>
         </tarfileset>
       </tar>
-      <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
-                  reportFile="${build.dir}/${final.name}-bin.rat.txt">
-        <tarfileset>
-          <gzipresource>
-            <file file="${build.dir}/${final.name}-bin.tar.gz" />
-          </gzipresource>
-        </tarfileset>
-      </rat:report>
 
       <tar compression="gzip" longfile="gnu"
            destfile="${build.dir}/${final.name}-src.tar.gz">
@@ -419,6 +412,39 @@
           <exclude name="bin/*.bat" />
         </tarfileset>
       </tar>
+    </target>
+
+    <target name="release" depends="artifacts,rat-init"
+            description="Create and QC release artifacts">
+      <checksum file="${build.dir}/${final.name}-bin.tar.gz"
+                forceOverwrite="yes"
+                todir="${build.dir}"
+                fileext=".md5"
+                algorithm="MD5" />
+      <checksum file="${build.dir}/${final.name}-src.tar.gz"
+                forceOverwrite="yes"
+                todir="${build.dir}"
+                fileext=".md5"
+                algorithm="MD5" />
+      <checksum file="${build.dir}/${final.name}-bin.tar.gz"
+                forceOverwrite="yes"
+                todir="${build.dir}"
+                fileext=".sha"
+                algorithm="SHA" />
+      <checksum file="${build.dir}/${final.name}-src.tar.gz"
+                forceOverwrite="yes"
+                todir="${build.dir}"
+                fileext=".sha"
+                algorithm="SHA" />
+
+      <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
+                  reportFile="${build.dir}/${final.name}-bin.rat.txt">
+        <tarfileset>
+          <gzipresource>
+            <file file="${build.dir}/${final.name}-bin.tar.gz" />
+          </gzipresource>
+        </tarfileset>
+      </rat:report>
 
       <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
                   reportFile="${build.dir}/${final.name}-src.rat.txt">



Mime
View raw message