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/04/17 01:31:31 UTC
svn commit: r648895 - /lucene/mahout/trunk/build.xml
Author: kalle
Date: Wed Apr 16 16:31:24 2008
New Revision: 648895
URL: http://svn.apache.org/viewvc?rev=648895&view=rev
Log:
MAHOUT-38, Ant task to generate Job JAR
Modified:
lucene/mahout/trunk/build.xml
Modified: lucene/mahout/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/build.xml?rev=648895&r1=648894&r2=648895&view=diff
==============================================================================
--- lucene/mahout/trunk/build.xml (original)
+++ lucene/mahout/trunk/build.xml Wed Apr 16 16:31:24 2008
@@ -92,7 +92,7 @@
<property name="junit.includes" value="**/Test*.java,**/*Test.java"/>
<property name="tests.verbose" value="false"/>
- <property name="junit.excludes" value="**/MatrixTest.java"/>
+ <property name="junit.excludes" value="**/MatrixTest.java, **/TreeFeedTest.java, **/TreeTest.java, **/HeirarchialTest.java"/>
<property name="junit.jar" value="junit-3.8.2.jar"/>
<property name="junit-location.jar" value="${lib}/${junit.jar}"/>
<path id="junit-path">
@@ -263,6 +263,12 @@
<copy todir="${dest}/test-classes">
<fileset dir="src/test/java" excludes="**/*.java"/>
</copy>
+
+ <!-- Copy any data files present to the classpath -->
+ <copy todir="${dest}/test-classes">
+ <fileset dir="src/test/resources"/>
+ </copy>
+
</target>
@@ -303,6 +309,15 @@
</target>
+ <target name="job" depends="compile">
+ <jar jarfile="${dest}/${fullnamever}.job">
+ <zipfileset dir="${dest}/classes"/>
+ <zipfileset dir="${lib}" prefix="lib"
+ includes="**/*.jar" excludes="hadoop-*.jar"/>
+ </jar>
+ </target>
+
+
<target name="dist-jar"
description="Creates the Mahout JAR Distribution file."
depends="compile, make-manifest">
@@ -364,4 +379,4 @@
value="${java.compat.version}"/>
</manifest>
</target>
-</project>
\ No newline at end of file
+</project>