Skip to content
Browse files

Add target to build release artifacts.

  • Loading branch information...
1 parent 35af74b commit 2cb9de12804bad364ece142bac1560eb50940076 @jkreps jkreps committed
Showing with 19 additions and 16 deletions.
  1. +19 −16 build.xml
View
35 build.xml
@@ -47,7 +47,7 @@
</sequential>
</macrodef>
- <target name="all" depends="clean, jar, test, contrib-jar" description="Build all artifacts." />
+ <target name="all" depends="clean, jar, test, contrib-jar, srcjar" description="Build all artifacts." />
<target name="clean" description="Delete generated files.">
<delete dir="${dist.dir}" />
@@ -139,21 +139,6 @@
</jar>
</target>
- <target name="utils" depends="build" description="Build a jar file with voldemort util classes.">
- <tstamp>
- <format property="TODAY" pattern="yyyy-MM-dd" locale="en,US" />
- </tstamp>
- <jar destfile="${dist.dir}/${name}-utils-${TODAY}.jar">
- <fileset dir="${classes.dir}">
- <include name="voldemort/VoldemortException.class" />
- <include name="voldemort/Serializer.class" />
- <include name="voldemort/serialization/SerializationException.class" />
- <include name="voldemort/serialization/json/*" />
- <include name="voldemort/utils/*" />
- </fileset>
- </jar>
- </target>
-
<target name="contrib-junit" depends="contrib-jar" description="Run contrib junit tests.">
<replace-dir dir="${contribtestreport.dir}" />
<replace-dir dir="${contribtesthtml.dir}" />
@@ -174,6 +159,24 @@
<report todir="${contribtesthtml.dir}" format="frames" />
</junitreport>
</target>
+
+ <target name="release" depends="all" description="Create a release zip file with everything pre-built.">
+ <zip destfile="${dist.dir}/${name}-${curr.release}.zip">
+ <zipfileset dir="." prefix="voldemort-${curr.release}" filemode="755" includes="bin/*"/>
+ <zipfileset dir="." prefix="voldemort-${curr.release}" includes="**">
+ <exclude name="${dist.dir}/*classes"/>
+ <exclude name="bin/*"/>
+ </zipfileset>
+ </zip>
+ <tar destfile="${dist.dir}/${name}-${curr.release}.tar.gz" compression="gzip" longfile="gnu">
+ <tarfileset dir="." prefix="voldemort-${curr.release}" filemode="755" includes="bin/*"/>
+ <tarfileset dir="." prefix="voldemort-${curr.release}" includes="**">
+ <exclude name="${dist.dir}/*classes"/>
+ <exclude name="${dist.dir}/*.zip"/>
+ <exclude name="bin/*"/>
+ </tarfileset>
+ </tar>
+ </target>
<target name="junit" depends="build, buildtest" description="Run junit tests.">
<replace-dir dir="${testreport.dir}" />

0 comments on commit 2cb9de1

Please sign in to comment.
Something went wrong with that request. Please try again.