Author: kalle
Date: Fri Sep 19 04:50:28 2008
New Revision: 697067
URL: http://svn.apache.org/viewvc?rev=697067&view=rev
Log:
target "package"
Modified:
lucene/mahout/branches/branch-0.1/build.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=697067&r1=697066&r2=697067&view=diff
==============================================================================
--- lucene/mahout/branches/branch-0.1/build.xml (original)
+++ lucene/mahout/branches/branch-0.1/build.xml Fri Sep 19 04:50:28 2008
@@ -2,17 +2,77 @@
<project name="mahout" default="dist" basedir=".">
+ <property name="version" value="0.1" />
+
<target name="dist">
<ant dir="core" antfile="build.xml" target="dist-jar"/>
<ant dir="examples" antfile="build.xml" target="dist-jar"/>
</target>
<target name="clean">
- <ant dir="core" antfile="build.xml" target="clean"/>
- <ant dir="examples" antfile="build.xml" target="clean"/>
+ <ant dir="core" antfile="build.xml" target="clean" />
+ <ant dir="examples" antfile="build.xml" target="clean" />
<delete dir="build"/>
-
+ <delete dir="${dist}" />
+ </target>
+
+ <target name="javadoc">
+ <ant dir="core" antfile="build.xml" target="javadoc"/>
+ </target>
+
+ <!-- make a distribution -->
+ <target name="package"
+ description="Packages the Mahout distribution files and
documentation."
+ depends="dist, javadoc">
+
+ <property name="fullname" value="apache-${ant.project.name}"/>
+ <property name="fullnamever"
value="apache-${ant.project.name}-${version}"/>
+
+ <property name="dist" value="dist" />
+
+ <mkdir dir="${dist}"/>
+
+ <tar destfile="${dist}/${fullnamever}.tgz" compression="gzip">
+ <tarfileset dir="."
+ prefix="${fullnamever}"
+ includes="KEYS LICENSE.txt NOTICE.txt README.txt build.xml pom.xml
lib/"
+ excludes=""/>
+ <tarfileset dir="./core"
+ prefix="${fullnamever}/core"
+ includes="build.properties build.xml taste-build.xml pom.xml src/ lib/"
+ excludes=""/>
+ <tarfileset dir="./examples"
+ prefix="${fullnamever}/examples"
+ includes="build.properties build.xml pom.xml src/ lib/"
+ excludes=""/>
+ <tarfileset dir="./core/build/docs/api"
+ prefix="${fullnamever}/docs/api" />
+ <tarfileset dir="./core/dist/"
+ prefix="${fullnamever}"
+ includes="*.jar"/>
+ </tar>
+
+ <property name="dest" value="build"/>
+ <mkdir dir="${dest}"/>
+
+ <gunzip src="${dist}/${fullnamever}.tgz"
dest="${dest}/${fullnamever}.tar"/>
+ <untar src="${dest}/${fullnamever}.tar" dest="${dest}"/>
+
+ <zip destfile="${dist}/${fullnamever}.zip">
+ <zipfileset dir="${dest}/${fullnamever}"
+ prefix="${fullnamever}"/>
+ </zip>
+
+ <!-- TODO: arm tgz and zip with gpg and create md5 sums -->
+
+ <!-- TODO: create maven artifacts -->
+
+ <delete dir="${dest}" />
+
</target>
+
+
+
</project>
\ No newline at end of file