labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject svn commit: r1426407 - in /labs/alike/trunk: build.xml demo/README.txt demo/build.xml demo/desc/
Date Fri, 28 Dec 2012 05:35:38 GMT
Author: koji
Date: Fri Dec 28 05:35:37 2012
New Revision: 1426407

URL: http://svn.apache.org/viewvc?rev=1426407&view=rev
Log:
change directory to lib in hadoop job package, remove desc directory in demo

Removed:
    labs/alike/trunk/demo/desc/
Modified:
    labs/alike/trunk/build.xml
    labs/alike/trunk/demo/README.txt
    labs/alike/trunk/demo/build.xml

Modified: labs/alike/trunk/build.xml
URL: http://svn.apache.org/viewvc/labs/alike/trunk/build.xml?rev=1426407&r1=1426406&r2=1426407&view=diff
==============================================================================
--- labs/alike/trunk/build.xml (original)
+++ labs/alike/trunk/build.xml Fri Dec 28 05:35:37 2012
@@ -88,9 +88,17 @@
     </target>
 
     <target name="alike-dist" depends="alike-compile" description="make a package for
distributed job on hadoop cluster">
-        <jar destfile="${product.job}">
+        <delete dir="${cls.dir}/lib"/>
+        <mkdir dir="${cls.dir}/lib"/>
+        <copy todir="${cls.dir}/lib">
+            <fileset dir="${lib.dir}">
+              <include name="**/*.jar"/>
+              <exclude name="*-javadoc.jar"/>
+              <exclude name="*-sources.jar"/>
+            </fileset>
+        </copy>
+        <jar destfile="${product.job}" update="false">
             <fileset dir="${cls.dir}"/>
-            <fileset dir="${lib.dir}"/>
         </jar>
     </target>
 

Modified: labs/alike/trunk/demo/README.txt
URL: http://svn.apache.org/viewvc/labs/alike/trunk/demo/README.txt?rev=1426407&r1=1426406&r2=1426407&view=diff
==============================================================================
--- labs/alike/trunk/demo/README.txt (original)
+++ labs/alike/trunk/demo/README.txt Fri Dec 28 05:35:37 2012
@@ -41,6 +41,8 @@
 
 6. run extractor program
 
+   # before running the program, desc directory needs to be created
+   $ mkdir desc
    $ export PYTHONPATH=../src/python; python run_desc_extractor.py
 
 7. if you want to run mahout on hadoop distributed environment, do the following,

Modified: labs/alike/trunk/demo/build.xml
URL: http://svn.apache.org/viewvc/labs/alike/trunk/demo/build.xml?rev=1426407&r1=1426406&r2=1426407&view=diff
==============================================================================
--- labs/alike/trunk/demo/build.xml (original)
+++ labs/alike/trunk/demo/build.xml Fri Dec 28 05:35:37 2012
@@ -67,12 +67,12 @@
 
     <!-- overriding imported clean target -->
     <target name="clean" description="clean intermediate and result files of demo">
+        <delete dir="demo/desc"/>
         <delete dir="demo/input-vectors"/>
         <delete dir="demo/init-clusters"/>
         <delete dir="demo/output-clusters"/>
         <delete dir="demo/solrhome/collection1/data"/>
         <delete includeemptydirs="true">
-            <fileset dir="demo/desc" includes="**/*"/>
             <fileset dir="demo" includes="result-centroids.txt,.input-vectors.crc,solr-demo-data.xml"/>
         </delete>
     </target>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message